moved logic for default home manager
This commit is contained in:
28
flake.nix
28
flake.nix
@@ -44,35 +44,7 @@
|
||||
|
||||
homeManagerModules.default = { ... }: {
|
||||
imports = [
|
||||
# ./nixosModules/options.nix
|
||||
./homeManagerModules
|
||||
inputs._1password-shell-plugins.hmModules.default
|
||||
];
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"1password-cli"
|
||||
"discord"
|
||||
"spotify"
|
||||
"steam"
|
||||
"steam-original"
|
||||
"steam-unwrapped"
|
||||
"steam-run"
|
||||
"sublimetext4"
|
||||
"vscode"
|
||||
"vscode-extension-mhutchie-git-graph"
|
||||
"vscode-extension-ms-vscode-remote-vscode-remote-extensionpack"
|
||||
"vscode-extension-MS-python-vscode-pylance"
|
||||
"vscode-extension-github-copilot"
|
||||
];
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"openssl-1.1.1w"
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "nhmu" ''
|
||||
nix flake update --flake ~/.config/home-manager
|
||||
nix run home-manager -- switch --flake ~/.config/home-manager
|
||||
'')
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -10,6 +10,27 @@
|
||||
./vscode.nix
|
||||
|
||||
../nixosModules/options.nix
|
||||
inputs._1password-shell-plugins.hmModules.default
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"1password-cli"
|
||||
"discord"
|
||||
"spotify"
|
||||
"steam"
|
||||
"steam-original"
|
||||
"steam-unwrapped"
|
||||
"steam-run"
|
||||
"sublimetext4"
|
||||
"vscode"
|
||||
"vscode-extension-mhutchie-git-graph"
|
||||
"vscode-extension-ms-vscode-remote-vscode-remote-extensionpack"
|
||||
"vscode-extension-MS-python-vscode-pylance"
|
||||
"vscode-extension-github-copilot"
|
||||
];
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"openssl-1.1.1w"
|
||||
];
|
||||
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
@@ -32,6 +53,10 @@
|
||||
btop
|
||||
yazi
|
||||
sops
|
||||
(writeShellScriptBin "nhmu" ''
|
||||
nix flake update --flake ~/.config/home-manager
|
||||
nix run home-manager -- switch --flake ~/.config/home-manager
|
||||
'')
|
||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||
# # overrides. You can do that directly here, just don't forget the
|
||||
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
||||
|
||||
Reference in New Issue
Block a user