Compare commits

..

No commits in common. "67523e7e310fc55fa683f3d5c659943d2836b07b" and "2b5ef6b1457088813473d826e11fcef6e779600a" have entirely different histories.

4 changed files with 21 additions and 27 deletions

View file

@ -1,7 +1,6 @@
{ ... }:
{
imports = [
./nix.nix
./users.nix
];
}

View file

@ -1,22 +0,0 @@
{ pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
binaryCaches = [
"https://alarsyo.cachix.org"
];
binaryCachePublicKeys = [
"alarsyo.cachix.org-1:A6BmcaJek5+ZDWWv3fPteHhPm6U8liS9CbDbmegPfmk="
];
gc = {
automatic = true;
dates = "03:15";
options = "--delete-older-than 30d";
};
};
}

View file

@ -10,10 +10,7 @@ in
users.users.alarsyo = {
hashedPassword = secrets.shadow-hashed-password-alarsyo;
isNormalUser = true;
extraGroups = [
"media"
"wheel" # Enable sudo for the user.
];
extraGroups = [ "wheel" ]; # Enable sudo for the user.
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3rrF3VSWI4n4cpguvlmLAaU3uftuX4AVV/39S/8GO9 alarsyo@thinkpad"

View file

@ -121,4 +121,24 @@ in
boot.supportedFilesystems = [ "btrfs" ];
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
binaryCaches = [
"https://alarsyo.cachix.org"
];
binaryCachePublicKeys = [
"alarsyo.cachix.org-1:A6BmcaJek5+ZDWWv3fPteHhPm6U8liS9CbDbmegPfmk="
];
gc = {
automatic = true;
dates = "03:15";
options = "--delete-older-than 30d";
};
};
}