updates home manager config

This commit is contained in:
Dennis Schoepf 2026-03-03 22:08:29 +01:00
parent 2c8c977d28
commit d44b7ebdaa
4 changed files with 26 additions and 39 deletions

View 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;
};
}

View file

@ -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";
};
};
}
];
};
}

View file

@ -7,6 +7,7 @@ in
system = "x86_64-linux"; system = "x86_64-linux";
modules = with config.flake.modules.nixos; [ modules = with config.flake.modules.nixos; [
# Modules # Modules
home-manager
base base
shell shell

View file

@ -31,7 +31,6 @@
programs.fish = { programs.fish = {
enable = true; enable = true;
functions = { functions = {
ff = "bash ${./ff.bash}";
fish_greeting = "fortune -a"; fish_greeting = "fortune -a";
localip = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1"; localip = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1";
publicip = "curl -4 ifconfig.me"; publicip = "curl -4 ifconfig.me";