mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-18 03:48:44 +01:00
Make home-manager apply to all users
This commit is contained in:
parent
ce39f9f6d9
commit
c3aa34812a
49
home.nix
49
home.nix
@ -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";
|
||||||
|
}];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user