Reorganize configs
This commit is contained in:
19
flake.lock
generated
19
flake.lock
generated
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
32
flake.nix
32
flake.nix
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@@ -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];
|
||||
}
|
@@ -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";
|
||||
}
|
||||
|
@@ -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";
|
||||
}
|
||||
|
@@ -1,8 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
discord
|
||||
element-desktop
|
||||
telegram-desktop
|
||||
];
|
||||
}
|
@@ -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
|
||||
];
|
||||
}
|
@@ -1,8 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
}
|
@@ -1,4 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [pkgs.inkscape];
|
||||
}
|
@@ -1,13 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
desktopManager = {
|
||||
cinnamon.enable = true;
|
||||
xterm.enable = false;
|
||||
};
|
||||
};
|
||||
displayManager.defaultSession = "cinnamon";
|
||||
};
|
||||
}
|
@@ -1,4 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [pkgs.vlc];
|
||||
}
|
@@ -1,7 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
openscad-unstable
|
||||
bambu-studio
|
||||
];
|
||||
}
|
@@ -1,7 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
networking = {
|
||||
hostName = "marauder";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
}
|
@@ -1,4 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [pkgs.obsidian];
|
||||
}
|
@@ -1,6 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
with pkgs.vscode-extensions; [
|
||||
bbenoist.nix
|
||||
github.copilot
|
||||
arrterian.nix-env-selector
|
||||
]
|
@@ -1,4 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [pkgs.firefox];
|
||||
}
|
Reference in New Issue
Block a user