[home] split out home-manager from configuration
This commit is contained in:
+1
-8
@@ -73,6 +73,7 @@
|
||||
v2raya # Only for Chinese user
|
||||
|
||||
# Nix related
|
||||
home-manager
|
||||
nix-output-monitor
|
||||
nixd
|
||||
nixpkgs-fmt
|
||||
@@ -171,14 +172,6 @@
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
"vscode"
|
||||
"code"
|
||||
"qq"
|
||||
"feishu"
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -17,19 +17,17 @@
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.origami = import ./home.nix;
|
||||
extraSpecialArgs = inputs;
|
||||
backupFileExtension = "bak";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
"origami@um790-nix" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
modules = [ ./home/um790.nix ];
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
desktop-file-utils
|
||||
|
||||
telegram-desktop
|
||||
qq
|
||||
mpv
|
||||
feishu
|
||||
moonlight-qt
|
||||
];
|
||||
|
||||
# An Apple Music client, only can be downloaded after purchasing
|
||||
@@ -0,0 +1,10 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
programs.gnupg = {
|
||||
enable = true;
|
||||
agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -13,6 +13,7 @@
|
||||
(import ./modules/gnome-dconf.nix)
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = _: true;
|
||||
home.packages = with pkgs;[
|
||||
# system call monitoring
|
||||
strace # system call monitoring
|
||||
Reference in New Issue
Block a user