From a6bf4a479355222b68827637123e4308400d001b Mon Sep 17 00:00:00 2001 From: System administrator Date: Wed, 30 Jan 2019 11:48:35 +0000 Subject: [PATCH] Add catullus --- systems/catullus/config.nix | 9 +++++++++ systems/catullus/physical.nix | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 systems/catullus/config.nix create mode 100755 systems/catullus/physical.nix diff --git a/systems/catullus/config.nix b/systems/catullus/config.nix new file mode 100755 index 0000000..974e905 --- /dev/null +++ b/systems/catullus/config.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: +{ + imports = [ ../slim.nix ]; + + boot.loader.grub.enable = false; + boot.loader.generic-extlinux-compatible.enable = true; + + networking.hostName = "catullus"; +} diff --git a/systems/catullus/physical.nix b/systems/catullus/physical.nix new file mode 100755 index 0000000..20ec1ac --- /dev/null +++ b/systems/catullus/physical.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: +{ + imports = [ ./config.nix ]; + + boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernelParams = [ "cma=32M" ]; + + fileSystems = { + "/boot" = { + device = "/dev/disk/by-label/NIXOS_BOOT"; + fsType = "vfat"; + }; + "/" = { + device = "/dev/disk/by-label/NIXOS_SD"; + fsType = "ext4"; + }; + }; + + swapDevices = [ { device = "/swapfile"; size = 1024; } ]; +}