mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
hosts/slate: init
This commit is contained in:
parent
bb73865b3e
commit
1ba1dbb203
2 changed files with 30 additions and 0 deletions
24
hosts/slate/configuration.nix
Normal file
24
hosts/slate/configuration.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
networking.search = [ "bck.me" ];
|
||||||
|
|
||||||
|
sconfig = {
|
||||||
|
profile = "desktop";
|
||||||
|
gnome = true;
|
||||||
|
security-tools = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
loader.systemd-boot.enable = true;
|
||||||
|
loader.efi.canTouchEfiVariables = true;
|
||||||
|
initrd.luks.devices.cryptroot = { device = "/dev/disk/by-partlabel/_luks"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=/os" "discard" "compress=zstd" ]; };
|
||||||
|
"/home" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=/home" "discard" "compress=zstd" ]; };
|
||||||
|
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "21.05";
|
||||||
|
}
|
6
hosts/slate/default.nix
Normal file
6
hosts/slate/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
pkgs = "nixpkgs";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
hardware = "physical";
|
||||||
|
module = ./configuration.nix;
|
||||||
|
}
|
Loading…
Reference in a new issue