Testing home-manager

This commit is contained in:
iFargle 2023-06-29 21:16:58 +09:00
parent af77389479
commit 40aaea83f4
2 changed files with 23 additions and 8 deletions

View file

@ -14,16 +14,14 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
# Plymouth splash screen # Plymouth splash screen
boot.plymouth.enable = true; boot.plymouth.enable = true;
boot.initrd.systemd.enable = true;
boot.kernelParams = ["quiet"];
# Setup keyfile # Setup keyfile
boot.initrd.secrets = { boot.initrd.secrets = {
"/crypto_keyfile.bin" = null; "/crypto_keyfile.bin" = null;
}; };
# Plymouth troubleshooting
boot.initrd.systemd.enable = true;
boot.kernelParams = ["quiet"];
# Enable swap on luks # Enable swap on luks
boot.initrd.luks.devices."luks-9704447e-6bd0-4a35-9c24-20cbab81c431".device = "/dev/disk/by-uuid/9704447e-6bd0-4a35-9c24-20cbab81c431"; boot.initrd.luks.devices."luks-9704447e-6bd0-4a35-9c24-20cbab81c431".device = "/dev/disk/by-uuid/9704447e-6bd0-4a35-9c24-20cbab81c431";
boot.initrd.luks.devices."luks-9704447e-6bd0-4a35-9c24-20cbab81c431".keyFile = "/crypto_keyfile.bin"; boot.initrd.luks.devices."luks-9704447e-6bd0-4a35-9c24-20cbab81c431".keyFile = "/crypto_keyfile.bin";
@ -163,9 +161,11 @@
services.openssh.enable = true; services.openssh.enable = true;
services.tailscale.enable = true; services.tailscale.enable = true;
# Enable nVidia drivers: # Garbage collection -- Keep the system clean
hardware.nvidia = { gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
}; };
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default

15
laptop/home-manager.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
imports = [
(import "${home-manager}/nixos")
];
home-manager.users.albert = {
/* The home.stateVersion option does not have a default and must be set */
home.stateVersion = "unstable";
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
};
}