feat: update home.nix config
This commit is contained in:
12
flake.nix
12
flake.nix
@@ -33,6 +33,9 @@
|
|||||||
# default config
|
# default config
|
||||||
default = nixpkgs.lib.nixosSystem {
|
default = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
# import host specific configs
|
# import host specific configs
|
||||||
./hosts/default/configuration.nix
|
./hosts/default/configuration.nix
|
||||||
@@ -58,14 +61,5 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
## home-manager config
|
|
||||||
#homeConfigurations = {
|
|
||||||
# aaron = home-manager.lib.homeManagerConfiguration {
|
|
||||||
# inherit pkgs;
|
|
||||||
# modules = [ ./hosts/default/home.nix ];
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
# 0x29a nixos conifg
|
# 0x29a nixos conifg
|
||||||
|
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
# use flakes
|
# use flakes
|
||||||
@@ -126,6 +127,14 @@
|
|||||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
networking.firewall.allowedUDPPorts = [ ];
|
networking.firewall.allowedUDPPorts = [ ];
|
||||||
|
|
||||||
|
# enable home-manager globally
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.backupFileExtension = "backup";
|
||||||
|
|
||||||
|
# Add the user's home-manager configuration
|
||||||
|
home-manager.users.aaron = import ./home.nix;
|
||||||
|
|
||||||
# install state version
|
# install state version
|
||||||
system.stateVersion = "25.11"; # Don't change
|
system.stateVersion = "25.11"; # Don't change
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,25 +45,18 @@
|
|||||||
userEmail = "aaron@0x29a.ch";
|
userEmail = "aaron@0x29a.ch";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#programs.starship.enable = true;
|
||||||
|
#programs.starship.enableZshIntegration = true;
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "git" "sudo" "python" "ansible" ];
|
theme = "gentoo";
|
||||||
theme = "agnoster";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
## deploy qtile config
|
|
||||||
#home.file."qtile-config" = {
|
|
||||||
# target = ".config/qtile/config.py";
|
|
||||||
# source = "${inputs.qtile-config}/qtile_config/config.py";
|
|
||||||
# force = true;
|
|
||||||
#};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "vim";
|
EDITOR = "vim";
|
||||||
};
|
};
|
||||||
@@ -72,5 +65,5 @@
|
|||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
# don't change
|
# don't change
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user