Different host configuration
This commit is contained in:
parent
48711dc141
commit
6af19b3af4
13 changed files with 153 additions and 14 deletions
|
@ -3,6 +3,7 @@ let
|
|||
inherit (inputs) self;
|
||||
inherit (self) lib;
|
||||
in {
|
||||
# Vali
|
||||
vali = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit lib inputs self; };
|
||||
|
@ -14,11 +15,23 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
# Lars
|
||||
dyonisos = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit lib inputs self; };
|
||||
modules = [
|
||||
./dyonisos
|
||||
./lars/dyonisos
|
||||
../modules
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.agenix.nixosModules.default
|
||||
];
|
||||
};
|
||||
|
||||
kronos = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit lib inputs self; };
|
||||
modules = [
|
||||
./lars/kronos
|
||||
../modules
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.agenix.nixosModules.default
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
_: {
|
||||
imports = [
|
||||
../../options/boot/grub-boot.nix
|
||||
../../options/desktop/fonts.nix
|
||||
../../options/common/networking.nix
|
||||
../../options/common/pin-registry.nix
|
||||
../../options/common/preserve-system.nix
|
||||
];
|
||||
}
|
|
@ -7,10 +7,6 @@
|
|||
programs.kdeconnect.enable = true;
|
||||
myOptions = {
|
||||
other = {
|
||||
system = {
|
||||
hostname = "dyonisos";
|
||||
username = "lars";
|
||||
};
|
||||
home-manager = {
|
||||
enable = true;
|
||||
enableDirenv = true;
|
11
hosts/lars/dyonisos/configuration.nix
Normal file
11
hosts/lars/dyonisos/configuration.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
{
|
||||
myOptions = {
|
||||
other = {
|
||||
system = {
|
||||
hostname = "dyonisos";
|
||||
username = "lars";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
../.
|
||||
./configuration.nix
|
||||
./programs.nix
|
||||
./hardware-configuration.nix
|
9
hosts/lars/dyonisos/profile.nix
Normal file
9
hosts/lars/dyonisos/profile.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
_: {
|
||||
imports = [
|
||||
../../../options/boot/grub-boot.nix
|
||||
../../../options/desktop/fonts.nix
|
||||
../../../options/common/networking.nix
|
||||
../../../options/common/pin-registry.nix
|
||||
../../../options/common/preserve-system.nix
|
||||
];
|
||||
}
|
11
hosts/lars/kronos/configuration.nix
Normal file
11
hosts/lars/kronos/configuration.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
{
|
||||
myOptions = {
|
||||
other = {
|
||||
system = {
|
||||
hostname = "kronos";
|
||||
username = "lars";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
9
hosts/lars/kronos/default.nix
Normal file
9
hosts/lars/kronos/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
_: {
|
||||
imports = [
|
||||
../.
|
||||
./configuration.nix
|
||||
./programs.nix
|
||||
./hardware-configuration.nix
|
||||
./profile.nix
|
||||
];
|
||||
}
|
38
hosts/lars/kronos/hardware-configuration.nix
Normal file
38
hosts/lars/kronos/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 = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/bca69c91-6f66-4b21-b90e-15b4bc21a405";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/8683-FD07";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
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.enp1s0f0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
10
hosts/lars/kronos/profile.nix
Normal file
10
hosts/lars/kronos/profile.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
_: {
|
||||
imports = [
|
||||
../../../options/boot/grub-boot.nix
|
||||
../../../options/desktop/fonts.nix
|
||||
../../../options/common/networking.nix
|
||||
../../options/common/gpu/nvidia.nix
|
||||
../../../options/common/pin-registry.nix
|
||||
../../../options/common/preserve-system.nix
|
||||
];
|
||||
}
|
50
hosts/lars/kronos/programs.nix
Normal file
50
hosts/lars/kronos/programs.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
let
|
||||
username = config.myOptions.other.system.username;
|
||||
in {
|
||||
home-manager.users.${username} = {
|
||||
home.packages = let
|
||||
fenix = inputs.fenix.packages.${pkgs.system};
|
||||
|
||||
in with pkgs; [
|
||||
neofetch
|
||||
git
|
||||
trash-cli
|
||||
element-desktop
|
||||
steam
|
||||
libreoffice-fresh
|
||||
ventoy-full
|
||||
lazygit
|
||||
# obsidian
|
||||
neofetch
|
||||
zip
|
||||
vlc
|
||||
zathura
|
||||
alacritty
|
||||
unzip
|
||||
gcc
|
||||
bibata-cursors
|
||||
networkmanagerapplet
|
||||
xclip
|
||||
pamixer
|
||||
pcmanfm
|
||||
ffmpeg_6-full
|
||||
(fenix.complete.withComponents [
|
||||
"cargo"
|
||||
"clippy"
|
||||
"rust-src"
|
||||
"rustc"
|
||||
"rustfmt"
|
||||
])
|
||||
polkit
|
||||
fastfetch
|
||||
alsa-utils
|
||||
gdb
|
||||
tree
|
||||
smartmontools
|
||||
python3
|
||||
rustdesk
|
||||
neovim
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue