Move home-manager bootstrapping into common importable file

This commit is contained in:
Evie Litherland-Smith 2023-05-05 15:02:31 +01:00
parent 44117ddedf
commit cfca522e76
4 changed files with 15 additions and 12 deletions

View file

@ -1,10 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{ {
imports = [ imports = [
(import "${home-manager}/nixos") ./home
./common.nix ./common.nix
./hardware/audio.nix ./hardware/audio.nix
./locales/en_GB.nix ./locales/en_GB.nix

View file

@ -1,10 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{ {
imports = [ imports = [
(import "${home-manager}/nixos") ./home
./common.nix ./common.nix
./hardware/audio.nix ./hardware/audio.nix
./hardware/bluetooth.nix ./hardware/bluetooth.nix
@ -29,4 +26,9 @@ in
home.homeDirectory = "/home/elitherl"; home.homeDirectory = "/home/elitherl";
home.stateVersion = "22.11"; home.stateVersion = "22.11";
}; };
system.autoUpgrade = {
enable = false;
allowReboot = false;
};
} }

View file

@ -1,10 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{ {
imports = [ imports = [
(import "${home-manager}/nixos") ./home
./common.nix ./common.nix
./hardware/audio.nix ./hardware/audio.nix
./hardware/bluetooth.nix ./hardware/bluetooth.nix

7
home/default.nix Normal file
View file

@ -0,0 +1,7 @@
{ ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
imports = [ (import "${home-manager}/nixos") ];
}