refactor
This commit is contained in:
parent
f52a8f225b
commit
d7ce40ffa7
14 changed files with 38 additions and 30 deletions
|
|
@ -17,8 +17,9 @@
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
mod = import ./mod { inherit lib; };
|
lib' = import ./lib.nix { inherit lib; };
|
||||||
specialArgs = { inherit inputs mod; };
|
mod = lib'.walk-dir ./mod;
|
||||||
|
specialArgs = { inherit inputs mod lib'; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
imports =
|
imports =
|
||||||
with mod;
|
with mod;
|
||||||
[
|
[
|
||||||
collections.pc-common
|
collections.pc
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
]
|
]
|
||||||
++ (with inputs.nixos-hardware.nixosModules; [
|
++ (with inputs.nixos-hardware.nixosModules; [
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
imports = with mod; [
|
imports = with mod; [
|
||||||
collections.pc-common
|
collections.pc
|
||||||
keyboard
|
software.keyboard
|
||||||
|
software.games
|
||||||
nvidia-gpu
|
nvidia-gpu
|
||||||
games
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
rec {
|
||||||
let
|
walk-dir =
|
||||||
walk =
|
|
||||||
path:
|
path:
|
||||||
let
|
let
|
||||||
dir = builtins.readDir path;
|
dir = builtins.readDir path;
|
||||||
|
|
@ -12,10 +11,8 @@ let
|
||||||
if value == "regular" then
|
if value == "regular" then
|
||||||
import (path + "/${name}")
|
import (path + "/${name}")
|
||||||
else if value == "directory" then
|
else if value == "directory" then
|
||||||
walk (path + "/${name}")
|
walk-dir (path + "/${name}")
|
||||||
else
|
else
|
||||||
builtins.throw "Cannot handle item of type ${value}";
|
builtins.throw "Item of type ${value} are unsupported.";
|
||||||
}) dir;
|
}) dir;
|
||||||
|
}
|
||||||
in
|
|
||||||
walk ./.
|
|
||||||
|
|
@ -6,12 +6,13 @@
|
||||||
fonts
|
fonts
|
||||||
locale
|
locale
|
||||||
network
|
network
|
||||||
nix
|
nix-configuration
|
||||||
security
|
security
|
||||||
services
|
services
|
||||||
shell
|
software.development
|
||||||
software
|
software.programs
|
||||||
|
software.shell
|
||||||
|
software.window-manager
|
||||||
users
|
users
|
||||||
window-manager
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
@ -11,6 +11,8 @@
|
||||||
useRoutingFeatures = "client";
|
useRoutingFeatures = "client";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
|
|
||||||
networking.networkmanager.ensureProfiles.profiles = {
|
networking.networkmanager.ensureProfiles.profiles = {
|
||||||
"tuda-vpn" = {
|
"tuda-vpn" = {
|
||||||
connection = {
|
connection = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
systemd.services.NetworkManager-wait-online.enable = false;
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
18
mod/software/development.nix
Normal file
18
mod/software/development.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
documentation.dev.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
rustup
|
||||||
|
python313
|
||||||
|
python313Packages.mypy
|
||||||
|
gcc
|
||||||
|
clang
|
||||||
|
gdb
|
||||||
|
gnumake
|
||||||
|
binutils
|
||||||
|
nixfmt-rfc-style
|
||||||
|
man-pages
|
||||||
|
man-pages-posix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -3,6 +3,5 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
runelite
|
runelite
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
}
|
}
|
||||||
|
|
@ -35,15 +35,8 @@
|
||||||
obsidian
|
obsidian
|
||||||
];
|
];
|
||||||
|
|
||||||
dev = with pkgs; [
|
|
||||||
rustup
|
|
||||||
python313
|
|
||||||
gcc
|
|
||||||
binutils
|
|
||||||
];
|
|
||||||
|
|
||||||
in
|
in
|
||||||
editors ++ messengers ++ util ++ media ++ productivity ++ dev;
|
editors ++ messengers ++ util ++ media ++ productivity;
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
docker-compose
|
docker-compose
|
||||||
fd
|
fd
|
||||||
gh
|
gh
|
||||||
gnumake
|
|
||||||
htop
|
htop
|
||||||
killall
|
killall
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|
@ -19,7 +18,6 @@
|
||||||
unzip
|
unzip
|
||||||
wget
|
wget
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
nixfmt-rfc-style
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
Loading…
Add table
Add a link
Reference in a new issue