private/root/oignon/** filter=git-crypt-julm diff=git-crypt-julm
private/world/julm/** filter=git-crypt-julm diff=git-crypt-julm
+private/root/patate/** filter=git-crypt-sevy diff=git-crypt-sevy
+private/world/sevy/** filter=git-crypt-sevy diff=git-crypt-sevy
"nixpkgs": "nixpkgs"
},
"locked": {
- "lastModified": 1607156297,
- "narHash": "sha256-rRu3Nq3oRAaDDgJuNQhH7wD+rQfYoviNhrpqXyOlJjI=",
+ "lastModified": 1617625888,
+ "narHash": "sha256-GuVivqQPZUskBhu4uQAgWhGI1sVuqz7nRMV+Rc+yWBU=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "275d1b52126674764f0f3d15c73c2add511bd310",
+ "rev": "f019c1cf16d0019d332ef43cffa0bd9bf007252b",
"type": "github"
},
"original": {
"owner": "nix-community",
+ "ref": "release-20.09",
"repo": "home-manager",
"type": "github"
}
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/34f85de51bbc74595e63b22ee089adbb31f7c7a2";
inputs.flake-utils.url = "github:numtide/flake-utils";
-inputs.home-manager.url = "github:nix-community/home-manager";
+inputs.home-manager.url = "github:nix-community/home-manager/release-20.09";
#inputs.pass = { type = "path"; path = "./pass"; flake = false; };
outputs = inputs: let
remoteNixpkgsPatches = import nixpkgs/patches.nix;
pkgs.curl
pkgs.dino
#pkgs.dnsutils
+ pkgs.dstat
pkgs.ffmpeg
pkgs.file
pkgs.git-crypt
};
nix.sshServe = {
enable = true;
- keys = [ (lib.readFile ../private/world/sevy/ssh/id_ed25519.pub) ];
+ keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOOaag1MS41CRZrAji3K5IDROh5szSo34SDB0HNXGQtX julm@losurdo" ];
};
services.openssh.passwordAuthentication = false;
ExecStart = pkgs.writeShellScript "rsync-backup" ''
FS_LABEL=$1
set -eux
- DEVICE=$(${pkgs.util-linux}/bin/blkid -l -o device -t LABEL="$FS_LABEL")
+ # FIXME: utillinux -> unit-linux when updating to 20.05
+ DEVICE=$(${pkgs.utillinux}/bin/blkid -l -o device -t LABEL="$FS_LABEL")
while ! ${pkgs.glib}/bin/gio mount --device "$DEVICE"
do test ! -d /run/media/sevy/"$FS_LABEL" || break
sleep 1
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
services.thinkfan = {
enable = true;
+ # FIXME: uncomment when updating to 21.05
+ levels = ''
+ (0, 0, 57)
+ (1, 56, 62)
+ (2, 61, 65)
+ (3, 64, 66)
+ (4, 65, 68)
+ (5, 67, 71)
+ (6, 70, 76)
+ (7, 75, 81)
+ (127, 80, 32767)
+ '';
+ /*
levels = [
[0 0 57]
[1 56 62]
[7 75 81]
[127 80 32767]
];
+ */
};
# https://bugzilla.kernel.org/show_bug.cgi?id=110941
trap 'git reset private/root' EXIT
git rm -rf --cached --ignore-unmatch private/root # prevent copying to /nix/store
nixos-rebuild switch --flake . "$@"
- nix-env --delete-generations +2 --profile /nix/var/nix/profiles/system
+ nix-env --delete-generations +9 --profile /nix/var/nix/profiles/system
fi