moved around the hosts

This commit is contained in:
Chris Kruining 2024-07-21 14:26:30 +02:00
parent 9ba5f8fdf0
commit 23485c3c73
12 changed files with 166 additions and 8 deletions

View file

@ -8,6 +8,7 @@ in
{
imports = [
inputs.home-manager.nixosModules.home-manager
inputs.stylix.nixosModules.stylix
(mkAliasOptionModule ["hm"] ["home-manager" "users" config.user.name])
]
++ (mapModulesRec' (toString ./modules) import);

View file

@ -41,7 +41,7 @@
nixosModules =
{
chris = import ./.;
kaas = import ./.;
}
// mapModulesRec ./modules import;

View file

@ -0,0 +1,40 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
modules = {
themes.active = "everforrest";
networking.enable = true;
desktop = {
plasma.enable = true;
terminal = {
default = "alacritty";
allacrity.enable = true;
};
editors = {
default = "nano";
nano.enable = true;
};
browsers = {
default = "firefox";
firefox.enable = true;
firefox.privacy.enable = true;
};
};
shell = {
default = "zsh";
};
};
programs.kdeconnect = {
enable = true;
package = pkgs.valent;
};
}

View file

@ -5,7 +5,7 @@
modules = {
themes.active = "everforrest";
networking.networkManager.enable = true;
networking.enable = true;
develop = {
rust.enable = true;

View file

@ -0,0 +1,43 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
modules = {
themes.active = "everforrest";
networking.enable = true;
services = {
enable = true;
media.enable = true;
};
desktop = {
plasma.enable = true;
terminal = {
default = "alacritty";
allacrity.enable = true;
};
editors = {
default = "nano";
nano.enable = true;
};
};
shell = {
default = "zsh";
toolset = {
git.enable = true;
gnupg.enable = true;
};
};
};
programs.kdeconnect = {
enable = true;
package = pkgs.valent;
};
}

View file

@ -0,0 +1,38 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/dd518f17-61c9-4831-b1bd-e1cc2af292aa";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/0A56-EBFE";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -1,2 +0,0 @@
{}:
{}

View file

@ -1,2 +0,0 @@
{}:
{}

View file

@ -0,0 +1,40 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
modules = {
themes.active = "everforrest";
networking.enable = true;
desktop = {
plasma.enable = true;
terminal = {
default = "alacritty";
allacrity.enable = true;
};
editors = {
default = "nano";
nano.enable = true;
};
browsers = {
default = "firefox";
firefox.enable = true;
firefox.privacy.enable = true;
};
};
shell = {
default = "zsh";
};
};
programs.kdeconnect = {
enable = true;
package = pkgs.valent;
};
}

View file

@ -25,6 +25,6 @@ in rec
];
};
mapHosts = dir: attrs @ { system ? system, ... }:
mapModules dir (hostPath: mkHost hostPath attrs);
mapHosts = dir: attrs @ { system ? system, ... }:
mapModules dir (hostPath: mkHost hostPath attrs);
}