mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-05 20:56:33 +05:30
refactor: move home-manager module to their respective hosts
This commit is contained in:
128
flake.nix
128
flake.nix
@ -53,154 +53,42 @@
|
||||
nixosConfigurations = {
|
||||
arcturus = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs username;};
|
||||
modules = [
|
||||
./hosts/arcturus
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./hosts/arcturus/home.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
modules = [./hosts/arcturus];
|
||||
};
|
||||
|
||||
canopus = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs username;};
|
||||
modules = [
|
||||
./hosts/canopus
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./hosts/canopus/home.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
modules = [./hosts/canopus];
|
||||
};
|
||||
|
||||
alpha = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs username;};
|
||||
modules = [
|
||||
./hosts/alpha
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./hosts/alpha/home.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
modules = [./hosts/alpha];
|
||||
};
|
||||
|
||||
sirius = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs username;};
|
||||
modules = [
|
||||
./hosts/sirius
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./hosts/sirius/home.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
modules = [./hosts/sirius];
|
||||
};
|
||||
|
||||
vega = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs username;};
|
||||
modules = [
|
||||
./hosts/vega
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./hosts/vega/home.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
modules = [./hosts/vega];
|
||||
};
|
||||
|
||||
capella = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs username;};
|
||||
modules = [
|
||||
./hosts/capella
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./hosts/capella/home.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
modules = [./hosts/capella];
|
||||
};
|
||||
|
||||
vps = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs username;};
|
||||
modules = [
|
||||
./hosts/vps
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./hosts/vps/home.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
modules = [./hosts/vps];
|
||||
};
|
||||
|
||||
isoImage = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs username;};
|
||||
modules = [
|
||||
./hosts/isoImage
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./hosts/isoImage/home.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
modules = [./hosts/isoImage];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -103,5 +103,11 @@
|
||||
enable = false;
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
@ -142,5 +142,11 @@
|
||||
enable = false;
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
inputs,
|
||||
username,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
@ -300,5 +301,11 @@
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
modulesPath,
|
||||
inputs,
|
||||
username,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
@ -28,5 +29,11 @@
|
||||
enable = false;
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
@ -13,6 +13,7 @@
|
||||
in {
|
||||
imports = [
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
../../modules/nixos/sops.nix
|
||||
];
|
||||
@ -121,4 +122,15 @@ in {
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
backupFileExtension = "backup";
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = {inherit inputs outputs username;};
|
||||
users.${username} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,10 +1,14 @@
|
||||
{
|
||||
pkgs,
|
||||
modulesPath,
|
||||
inputs,
|
||||
username,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
../../modules/nixos/default.nix
|
||||
../../modules/nixos/desktop/awesome
|
||||
];
|
||||
@ -72,5 +76,11 @@
|
||||
|
||||
fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})];
|
||||
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
@ -47,5 +47,11 @@
|
||||
enable = false;
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
@ -1,4 +1,8 @@
|
||||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../common
|
||||
@ -51,5 +55,11 @@
|
||||
enable = false;
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
@ -10,6 +10,7 @@
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
inputs.disko.nixosModules.default
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
(import ./disko.nix {device = "/dev/sda";})
|
||||
];
|
||||
|
||||
@ -114,5 +115,11 @@
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
Reference in New Issue
Block a user