Compare commits
4 commits
a00aca6143
...
6110d26c39
Author | SHA1 | Date | |
---|---|---|---|
6110d26c39 | |||
f9ac37dd98 | |||
02f042dd7f | |||
a6f121fa9a |
5 changed files with 10 additions and 24 deletions
|
@ -108,17 +108,20 @@
|
||||||
users.users.crony = {
|
users.users.crony = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Crony";
|
description = "Crony";
|
||||||
# hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
|
hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
|
||||||
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "gamemode" "seat"];
|
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "gamemode" "seat"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# users.users.root.hashedPasswordFile = "${config.age.secrets.root-passwd.path}";
|
users.users.root.hashedPasswordFile = "${config.age.secrets.root-passwd.path}";
|
||||||
|
|
||||||
# users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# Enable my flake specific settings
|
||||||
|
crony.secrets.enable = true;
|
||||||
|
|
||||||
# List packages installed in system profile
|
# List packages installed in system profile
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
neovim
|
neovim
|
||||||
|
|
|
@ -22,11 +22,7 @@
|
||||||
content = {
|
content = {
|
||||||
type = "luks";
|
type = "luks";
|
||||||
name = "crypt";
|
name = "crypt";
|
||||||
passwordFile = "/tmp/secret.key"; # Interactive
|
settings.allowDiscards = true;
|
||||||
settings = {
|
|
||||||
allowDiscards = true;
|
|
||||||
keyFile = "/tmp/secret.key";
|
|
||||||
};
|
|
||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
extraArgs = ["-f"];
|
extraArgs = ["-f"];
|
||||||
|
|
|
@ -17,19 +17,6 @@
|
||||||
boot.kernelModules = ["kvm-amd"];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/0fbf752d-9234-42bd-9e04-8246de85e8d6";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/3156-31B6";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = ["fmask=0077" "dmask=0077"];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
|
|
@ -131,10 +131,10 @@ in {
|
||||||
server = "nixd";
|
server = "nixd";
|
||||||
options = {
|
options = {
|
||||||
nixos = {
|
nixos = {
|
||||||
expr = ''(builtins.getFlake "/home/crony/Repos/nixos").nixosConfigurations.CONFIGNAME.options'';
|
expr = ''(builtins.getFlake "/home/crony/repos/nixos").nixosConfigurations.CONFIGNAME.options'';
|
||||||
};
|
};
|
||||||
home_manager = {
|
home_manager = {
|
||||||
expr = ''(builtins.getFlake "/home/crony/Repos/nixos").homeConfigurations.CONFIGNAME.options'';
|
expr = ''(builtins.getFlake "/home/crony/repos/nixos").homeConfigurations.CONFIGNAME.options'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
# Install nh
|
# Install nh
|
||||||
programs.nh = {
|
programs.nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
flake = "/home/crony/Repos/nixos";
|
flake = "/home/crony/repos/nixos";
|
||||||
clean = {
|
clean = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraArgs = "--keep 5 --keep-since 3d";
|
extraArgs = "--keep 5 --keep-since 3d";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue