nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

home-manager.nix (704B)


      1 { machine, fullname, username, domain, email, sshkey, sshport, timezone, postcode, address, htpasswd, vpnusername, vpnpassword, todosecret, privatekey, matrixuser, matrixserver }:
      2 
      3 let
      4   home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz";
      5   all-variables = { inherit machine fullname username domain email sshkey sshport timezone postcode address htpasswd vpnusername vpnpassword todosecret privatekey matrixuser matrixserver; };
      6 in
      7 
      8 {
      9   imports = [ (import "${home-manager}/nixos") ];
     10 
     11   home-manager = {
     12     backupFileExtension = "hm-bak";
     13     useGlobalPkgs = true;
     14     useUserPackages = true;
     15     extraSpecialArgs = all-variables;
     16   };
     17 }