pushing for review
This commit is contained in:
parent
786ca732aa
commit
dd67b2592c
72 changed files with 1142 additions and 1447 deletions
97
flake.nix
97
flake.nix
|
|
@ -16,88 +16,21 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
|
||||
outputs = { self, home-manager, nixos-hardware, disko, nixpkgs, sops-nix, hyprland, xremap, ... }@inputs:
|
||||
let
|
||||
nixosConfigurations = {
|
||||
katana = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
# Define the system type
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
defaultPackage.system = home-manager.defaultPackage.x86_64-linux;
|
||||
defaultNixOptions = {
|
||||
nix.settings.auto-optimise-store = true;
|
||||
};
|
||||
mkComputer = configurationNix: userName: extraModules: extraHomeModules: inputs.nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit system inputs self pkgs nixos-hardware; };
|
||||
homeManagerModules.default = ./home_manager/home-manager.nix;
|
||||
# Define the modules for the configuration
|
||||
modules = [
|
||||
#Secrets management
|
||||
sops-nix.nixosModules.sops
|
||||
#Keybinding
|
||||
xremap.nixosModules.default
|
||||
#Machine config
|
||||
configurationNix
|
||||
defaultNixOptions
|
||||
|
||||
#User config
|
||||
(./. + "/users/${userName}")
|
||||
|
||||
#Home manager
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users."${userName}" = {
|
||||
imports = [ (./. + "/users/${userName}/home.nix") ] ++ extraHomeModules;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
] ++ extraModules;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
katana = mkComputer
|
||||
./machines/katana.nix #machine specific configuration
|
||||
"speccon18" #default user
|
||||
[
|
||||
./modules/system/desktop-environments/tuigreet.nix
|
||||
./modules/system/desktop-environments/hyprland.nix
|
||||
./modules/system/desktop-environments/budgie.nix
|
||||
./modules/system/desktop-environments/gnome.nix
|
||||
./hosts/katana/default.nix
|
||||
./hosts/katana/bluetooth.nix
|
||||
./hosts/katana/networkd.nix
|
||||
./hosts/katana/system-pkgs.nix
|
||||
./modules/system/services/docker.nix
|
||||
./modules/system/services/openssh.nix
|
||||
# ./modules/system/services/syncthing.nix
|
||||
./modules/system/services/tailscale.nix
|
||||
./modules/system/nix-cli
|
||||
] #extra modules to be loaded by nixos
|
||||
[
|
||||
hyprland.homeManagerModules.default
|
||||
./modules/home-manager/hyprland.nix
|
||||
./modules/home-manager/helix.nix
|
||||
./modules/home-manager/alacritty.nix
|
||||
./modules/home-manager/vscode.nix
|
||||
./modules/home-manager/zsh.nix
|
||||
./modules/home-manager/git.nix
|
||||
./modules/home-manager/zoxide.nix
|
||||
./modules/home-manager/ncspot.nix
|
||||
./modules/home-manager/zellij.nix
|
||||
./modules/home-manager/direnv.nix
|
||||
./modules/home-manager/home-manager.nix
|
||||
./modules/home-manager/starship.nix
|
||||
./modules/home-manager/dconf-settings.nix
|
||||
./modules/home-manager/syncthing.nix
|
||||
./modules/home-manager/waybar.nix
|
||||
./modules/home-manager/rofi.nix
|
||||
]; #extra modules to be loaded by home-manager
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
# Your configuration modules here. Example:
|
||||
./hosts/katana.nix
|
||||
./nixosModules/default.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue