Make home-manager apply to all users

This commit is contained in:
Donovan Glover 2023-05-12 11:34:48 -04:00
parent ce39f9f6d9
commit c3aa34812a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,17 +1,23 @@
{ config, lib, nixpkgs, home-manager, hyprland, ... }: { { config, lib, nixpkgs, pkgs, home-manager, hyprland, ... }: {
users.users.user = {
isNormalUser = true;
password = "user";
extraGroups = [ "wheel" "networkmanager" ];
};
imports = [ home-manager.nixosModule ]; imports = [ home-manager.nixosModule ];
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.users.user = { pkgs, ... }: { home-manager.backupFileExtension = "old";
home.username = "user"; home-manager.sharedModules = [{
home.homeDirectory = "/home/user"; programs.chromium = {
home.packages = [ pkgs.httpie ]; enable = true;
home.stateVersion = "22.11"; package = pkgs."ungoogled-chromium";
xdg = { userDirs = { enable = true; }; }; commandLineArgs = [ "--ozone-platform-hint=auto" ];
extensions = [{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; }];
};
programs.librewolf = {
enable = true;
settings = {
"middlemouse.paste" = false;
"browser.download.useDownloadDir" = true;
"ui.use_activity_cursor" = true;
"browser.tabs.insertAfterCurrent" = true;
};
};
xdg.configFile."hypr/hyprland.conf".text = '' xdg.configFile."hypr/hyprland.conf".text = ''
env=XCURSOR_SIZE,24 env=XCURSOR_SIZE,24
env=BROWSER,librewolf env=BROWSER,librewolf
@ -899,21 +905,6 @@
}; };
scripts = [ pkgs.mpvScripts.thumbnail ]; scripts = [ pkgs.mpvScripts.thumbnail ];
}; };
programs.librewolf = {
enable = true;
settings = {
"middlemouse.paste" = false;
"browser.download.useDownloadDir" = true;
"ui.use_activity_cursor" = true;
"browser.tabs.insertAfterCurrent" = true;
};
};
programs.chromium = {
enable = true;
package = pkgs."ungoogled-chromium";
commandLineArgs = [ "--ozone-platform-hint=auto" ];
extensions = [{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; }];
};
programs.git = { programs.git = {
enable = true; enable = true;
extraConfig = { extraConfig = {
@ -1119,5 +1110,7 @@
xdg.configFile."hypr/focusmaster.sh".source = ./focusmaster.sh; xdg.configFile."hypr/focusmaster.sh".source = ./focusmaster.sh;
xdg.configFile."hypr/swapmaster.sh".source = ./swapmaster.sh; xdg.configFile."hypr/swapmaster.sh".source = ./swapmaster.sh;
xdg.configFile."hypr/tags.sh".source = ./tags.sh; xdg.configFile."hypr/tags.sh".source = ./tags.sh;
}; xdg = { userDirs = { enable = true; }; };
home.stateVersion = "22.11";
}];
} }