Reorganize configs

This commit is contained in:
2024-07-11 12:21:43 -07:00
parent f23f4f7746
commit f7872964ec
19 changed files with 98 additions and 94 deletions

19
flake.lock generated
View File

@@ -16,9 +16,26 @@
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1720542800,
"narHash": "sha256-ZgnNHuKV6h2+fQ5LuqnUaqZey1Lqqt5dTUAiAnqH0QQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "feb2849fdeb70028c70d73b848214b00d324a497",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}
}
},

View File

@@ -3,19 +3,37 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs } @inputs: {
outputs = { self, nixpkgs, nixpkgs-unstable } @inputs:
let
mkHost = { hostname, system, stateVersion }: nixpkgs.lib.nixosSystem {
system = system;
modules = [
{
networking = {
hostName = hostname;
networkmanager.enable = true;
};
system.stateVersion = stateVersion;
}
./modules/nixos
./hosts/${hostname}
];
specialArgs = { inherit inputs; };
};
in {
nixosConfigurations = {
marauder = nixpkgs.lib.nixosSystem {
marauder = mkHost {
hostname = "marauder";
system = "x86_64-linux";
modules = [ ./hosts/marauder ];
specialArgs = { inherit inputs; };
stateVersion = "24.05";
};
monolith = nixpkgs.lib.nixosSystem {
monolith = mkHost {
hostname = "monolith";
system = "x86_64-linux";
modules = [ ./hosts/monolith ];
specialArgs = { inherit inputs; };
stateVersion = "24.05";
};
};
};

View File

@@ -1,13 +1,33 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
cargo
rustc
rustfmt
gcc
# Chat clients
discord
element-desktop
telegram-desktop
# Browsers
firefox
# Coding
(vscode-with-extensions.override {
vscodeExtensions = import ./vscode-extensions.nix { inherit pkgs; };
vscodeExtensions = with pkgs.vscode-extensions; [
bbenoist.nix
github.copilot
arrterian.nix-env-selector
];
})
# Art and 3D
inkscape
openscad-unstable
bambu-studio
# Multimedia
vlc
# Productivity
obsidian
];
programs = {
@@ -30,7 +50,10 @@
set linenumbers
'';
};
steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
};
fonts.packages = [pkgs.fira-code];
}

View File

@@ -1,6 +1,10 @@
{ config, lib, pkgs, inputs, ... }:
{
imports = [
./apps.nix
./backup.nix
./boot.nix
./hardware.nix
../../modules/nixos
];
@@ -13,5 +17,16 @@
"flakes"
];
services = {
xserver = {
enable = true;
desktopManager = {
cinnamon.enable = true;
xterm.enable = false;
};
};
displayManager.defaultSession = "cinnamon";
};
system.stateVersion = "24.05";
}

View File

@@ -1,5 +1,9 @@
{ config, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, inputs, outputs, ... }:
{
imports = [
outputs.nixosModules
];
time.timeZone = "America/Los_Angeles";
nix.settings.experimental-features = [
@@ -7,5 +11,10 @@
"flakes"
];
networking = {
hostName = "monolith";
networkmanager.enable = true;
};
system.stateVersion = "24.05";
}

View File

@@ -1,8 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
discord
element-desktop
telegram-desktop
];
}

View File

@@ -1,19 +1,6 @@
{ ... }:
{
imports = [
./backup.nix
./boot.nix
./chat.nix
./coding.nix
./gaming.nix
./hardware.nix
./illustration.nix
./interface.nix
./media.nix
./modelling.nix
./networking.nix
./productivity.nix
./users.nix
./web.nix
];
}

View File

@@ -1,8 +0,0 @@
{ ... }:
{
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
}

View File

@@ -1,4 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = [pkgs.inkscape];
}

View File

@@ -1,13 +0,0 @@
{ ... }:
{
services = {
xserver = {
enable = true;
desktopManager = {
cinnamon.enable = true;
xterm.enable = false;
};
};
displayManager.defaultSession = "cinnamon";
};
}

View File

@@ -1,4 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = [pkgs.vlc];
}

View File

@@ -1,7 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
openscad-unstable
bambu-studio
];
}

View File

@@ -1,7 +0,0 @@
{ ... }:
{
networking = {
hostName = "marauder";
networkmanager.enable = true;
};
}

View File

@@ -1,4 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = [pkgs.obsidian];
}

View File

@@ -1,6 +0,0 @@
{ pkgs, ... }:
with pkgs.vscode-extensions; [
bbenoist.nix
github.copilot
arrterian.nix-env-selector
]

View File

@@ -1,4 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = [pkgs.firefox];
}