init home manager

This commit is contained in:
caandt 2024-08-23 13:52:05 -05:00
parent a62196fbc1
commit d80a288389
4 changed files with 84 additions and 54 deletions

View file

@ -80,39 +80,6 @@
users.users.ahnwuoa = { users.users.ahnwuoa = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
packages = with pkgs; [
firefox
alacritty
mpv
nsxiv
rofi
sct
maim
xclip
libsForQt5.kcalc
libsForQt5.kolourpaint
libsForQt5.filelight
papirus-icon-theme
pavucontrol
qpwgraph
gdb
lsd
bat
zoxide
fd
ripgrep
fzf
trash-cli
tlrc
micro
speedtest-cli
bluetuith
unixtools.xxd
python3
gnumake
];
}; };
programs.partition-manager = { programs.partition-manager = {
enable = true; enable = true;
@ -138,27 +105,7 @@
fcitx5-gtk fcitx5-gtk
]; ];
}; };
qt = {
enable = true;
platformTheme = "qt5ct";
style = "breeze";
};
security.polkit.enable = true; security.polkit.enable = true;
systemd = {
user.services.polkit-kde-authentication-agent-1 = {
description = "polkit-kde-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }

View file

@ -1,5 +1,26 @@
{ {
"nodes": { "nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1720042825,
"narHash": "sha256-A0vrUB6x82/jvf17qPCpxaM+ulJnD8YZwH9Ci0BsAzE=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "e1391fb22e18a36f57e6999c7a9f966dc80ac073",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-24.05",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1723556749, "lastModified": 1723556749,
@ -18,6 +39,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }

View file

@ -3,13 +3,22 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { nixpkgs, ... }@inputs: { outputs = { nixpkgs, home-manager, ... }@inputs: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./configuration.nix ./configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.ahnwuoa = import ./home.nix;
}
]; ];
}; };
}; };

52
home.nix Normal file
View file

@ -0,0 +1,52 @@
{ config, pkgs, ... }:
let
username = "ahnwuoa";
homeDirectory = "/home/${username}";
in
{
home.username = username;
home.homeDirectory = homeDirectory;
home.packages = with pkgs; [
firefox
alacritty
mpv
nsxiv
rofi
sct
maim
xclip
libsForQt5.kcalc
libsForQt5.kolourpaint
libsForQt5.filelight
papirus-icon-theme
pavucontrol
qpwgraph
gdb
lsd
bat
zoxide
fd
ripgrep
fzf
trash-cli
tlrc
micro
speedtest-cli
bluetuith
unixtools.xxd
starship
python3
gnumake
];
qt = {
enable = true;
platformTheme.name = "qtct";
style.name = "breeze";
style.package = pkgs.libsForQt5.breeze-qt5;
};
home.stateVersion = "24.05";
}