updates home manager config
This commit is contained in:
parent
2c8c977d28
commit
d44b7ebdaa
4 changed files with 26 additions and 39 deletions
25
modules/home-manager/default.nix
Normal file
25
modules/home-manager/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ inputs, config, ... }:
|
||||
let
|
||||
username = config.flake.globalConfig.username;
|
||||
hmConfig = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "backup";
|
||||
users.${username}.home.stateVersion = "24.11";
|
||||
};
|
||||
in
|
||||
{
|
||||
flake.modules.nixos.home-manager =
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
home-manager = hmConfig;
|
||||
};
|
||||
|
||||
flake.modules.darwin.home-manager =
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ inputs.home-manager.darwinModules.home-manager ];
|
||||
home-manager = hmConfig;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
hostname = "dnsc-air";
|
||||
username = config.flake.globalConfig.username;
|
||||
in
|
||||
{
|
||||
flake.darwinConfigurations.dnsc-air = inputs.nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
config.flake.modules.darwin.base
|
||||
{
|
||||
networking.hostName = "${hostname}";
|
||||
networking.computerName = "${hostname}";
|
||||
users.users.${username}.home = "/Users/${username}";
|
||||
nix.enable = false;
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
backupFileExtension = "backup";
|
||||
users.${username} = {
|
||||
imports = [ config.flake.modules.homeManager.neovim ];
|
||||
home.stateVersion = "24.11";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -7,6 +7,7 @@ in
|
|||
system = "x86_64-linux";
|
||||
modules = with config.flake.modules.nixos; [
|
||||
# Modules
|
||||
home-manager
|
||||
base
|
||||
shell
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
programs.fish = {
|
||||
enable = true;
|
||||
functions = {
|
||||
ff = "bash ${./ff.bash}";
|
||||
fish_greeting = "fortune -a";
|
||||
localip = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1";
|
||||
publicip = "curl -4 ifconfig.me";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue