sort home manager settings
This commit is contained in:
parent
51983612e1
commit
dfee38f437
12
common.nix
12
common.nix
|
@ -1,21 +1,17 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
impermanence = builtins.fetchTarball "https://github.com/nix-community/impermanence/archive/master.tar.gz";
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
#
|
||||
# stuff shared between home machines
|
||||
#
|
||||
|
||||
# get impermanence & home manager working
|
||||
# get impermanence working & include more shared parts
|
||||
imports = [
|
||||
# manage persistent files
|
||||
"${impermanence}/nixos.nix"
|
||||
|
||||
# home manager for per user config
|
||||
"${home-manager}/nixos"
|
||||
|
||||
# our users
|
||||
"/data/nixos/users.nix"
|
||||
];
|
||||
|
@ -278,12 +274,6 @@ in
|
|||
systemd.targets.hibernate.enable = false;
|
||||
systemd.targets.hybrid-sleep.enable = false;
|
||||
|
||||
# let home manager install stuff to /etc/profiles
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
# use global pkgs
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
# allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
|
23
users.nix
23
users.nix
|
@ -1,6 +1,14 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
# get home manager working
|
||||
imports = [
|
||||
# home manager for per user config
|
||||
"${home-manager}/nixos"
|
||||
];
|
||||
|
||||
users = {
|
||||
# all users and passwords are defined here
|
||||
mutableUsers = false;
|
||||
|
@ -45,7 +53,16 @@
|
|||
};
|
||||
};
|
||||
|
||||
# home manager settings
|
||||
home-manager = {
|
||||
# let home manager install stuff to /etc/profiles
|
||||
useUserPackages = true;
|
||||
|
||||
# use global pkgs
|
||||
useGlobalPkgs = true;
|
||||
|
||||
# use shared home manager settings for all users
|
||||
home-manager.users.root = import ./home.nix;
|
||||
home-manager.users.cullmann = import ./home.nix;
|
||||
users.root = import ./home.nix;
|
||||
users.cullmann = import ./home.nix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue