moved around the hosts
This commit is contained in:
parent
9ba5f8fdf0
commit
23485c3c73
12 changed files with 166 additions and 8 deletions
|
@ -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);
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
nixosModules =
|
||||
{
|
||||
chris = import ./.;
|
||||
kaas = import ./.;
|
||||
}
|
||||
// mapModulesRec ./modules import;
|
||||
|
||||
|
|
40
hosts/chris-laptop/default.nix
Normal file
40
hosts/chris-laptop/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
modules = {
|
||||
themes.active = "everforrest";
|
||||
|
||||
networking.networkManager.enable = true;
|
||||
networking.enable = true;
|
||||
|
||||
develop = {
|
||||
rust.enable = true;
|
43
hosts/chris-server/default.nix
Normal file
43
hosts/chris-server/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
38
hosts/chris-server/hardware-configuration.nix
Normal file
38
hosts/chris-server/hardware-configuration.nix
Normal 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;
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
{}:
|
||||
{}
|
|
@ -1,2 +0,0 @@
|
|||
{}:
|
||||
{}
|
40
hosts/mam-laptop/default.nix
Normal file
40
hosts/mam-laptop/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue