Add home manager and reorganize modules

This commit is contained in:
2024-07-07 15:36:04 -07:00
parent 741e3b973f
commit 206109dbc7
20 changed files with 75 additions and 31 deletions

29
flake.lock generated
View File

@@ -1,23 +1,44 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1720188602,
"narHash": "sha256-lC3byBmhVZFzWl/dCic8+cKUEEAXAswWOYjq4paFmbo=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "e3582e5151498bc4d757e8361431ace8529e7bb7",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1717179513,
"narHash": "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=",
"lastModified": 1720031269,
"narHash": "sha256-rwz8NJZV+387rnWpTYcXaRNvzUSnnF9aHONoJIYmiUQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "63dacb46bf939521bdc93981b4cbb7ecb58427a0",
"rev": "9f4128e00b0ae8ec65918efeba59db998750ead6",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "24.05",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}

View File

@@ -2,14 +2,24 @@
description = "Nettika NixOS Configurations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/24.05";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs }: {
outputs = { self, nixpkgs, home-manager } @inputs: {
nixosConfigurations = {
marauder = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./marauder.nix ];
specialArgs = {
inherit inputs;
};
modules = [
./hosts/marauder
home-manager.nixosModules.default
];
};
};
};

View File

@@ -0,0 +1,19 @@
{ config, lib, pkgs, inputs, ... }:
{
imports = [
../../modules/nixos
];
time.timeZone = "America/Los_Angeles";
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
home-manager.users.nettika = import ./home.nix;
system.stateVersion = "24.05";
}

8
hosts/marauder/home.nix Normal file
View File

@@ -0,0 +1,8 @@
{ ... }:
{
home = {
username = "nettika";
homeDirectory = "/home/nettika";
stateVersion = "24.05";
};
}

View File

@@ -1,33 +1,19 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
imports = [
./hardware.nix
./backup.nix
./boot.nix
./interface.nix
./networking.nix
./users.nix
./web.nix
./chat.nix
./coding.nix
./gaming.nix
./media.nix
./hardware.nix
./illustration.nix
./productivity.nix
./interface.nix
./media.nix
./modelling.nix
./backup.nix
./networking.nix
./productivity.nix
./users.nix
./web.nix
];
time.timeZone = "America/Los_Angeles";
nixpkgs = {
hostPlatform = "x86_64-linux";
config.allowUnfree = true;
};
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
system.stateVersion = "24.05";
}
}