i did something but i forgot
This commit is contained in:
parent
4e6480d9a0
commit
d4df25abdf
27 changed files with 45 additions and 26 deletions
0
.gitignore
vendored
Executable file → Normal file
0
.gitignore
vendored
Executable file → Normal file
0
nix/flake.lock
generated
Executable file → Normal file
0
nix/flake.lock
generated
Executable file → Normal file
4
nix/flake.nix
Executable file → Normal file
4
nix/flake.nix
Executable file → Normal file
|
|
@ -9,12 +9,12 @@
|
|||
};
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
mecca = nixpkgs.lib.nixosSystem {
|
||||
hilbert = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {inherit inputs;};
|
||||
modules = [
|
||||
./hosts/common.nix
|
||||
./hosts/mecca/configuration.nix
|
||||
./hosts/hilbert/configuration.nix
|
||||
];
|
||||
};
|
||||
cantor = nixpkgs.lib.nixosSystem {
|
||||
|
|
|
|||
0
nix/hosts/cantor/configuration.nix
Executable file → Normal file
0
nix/hosts/cantor/configuration.nix
Executable file → Normal file
0
nix/hosts/cantor/hardware-configuration.nix
Executable file → Normal file
0
nix/hosts/cantor/hardware-configuration.nix
Executable file → Normal file
0
nix/hosts/common.nix
Executable file → Normal file
0
nix/hosts/common.nix
Executable file → Normal file
0
nix/hosts/dotfiles/.emacs.d/init.el
Executable file → Normal file
0
nix/hosts/dotfiles/.emacs.d/init.el
Executable file → Normal file
0
nix/hosts/dotfiles/ghostty/config
Executable file → Normal file
0
nix/hosts/dotfiles/ghostty/config
Executable file → Normal file
0
nix/hosts/dotfiles/hypr/bg.jpg
Executable file → Normal file
0
nix/hosts/dotfiles/hypr/bg.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
0
nix/hosts/dotfiles/hypr/hyprland.conf
Executable file → Normal file
0
nix/hosts/dotfiles/hypr/hyprland.conf
Executable file → Normal file
0
nix/hosts/dotfiles/hypr/start.sh
Executable file → Normal file
0
nix/hosts/dotfiles/hypr/start.sh
Executable file → Normal file
0
nix/hosts/dotfiles/mpv/mpv.conf
Executable file → Normal file
0
nix/hosts/dotfiles/mpv/mpv.conf
Executable file → Normal file
0
nix/hosts/dotfiles/neofetch/config.conf
Executable file → Normal file
0
nix/hosts/dotfiles/neofetch/config.conf
Executable file → Normal file
0
nix/hosts/dotfiles/nvim/init.lua
Executable file → Normal file
0
nix/hosts/dotfiles/nvim/init.lua
Executable file → Normal file
0
nix/hosts/dotfiles/waybar/config
Executable file → Normal file
0
nix/hosts/dotfiles/waybar/config
Executable file → Normal file
0
nix/hosts/dotfiles/waybar/style.css
Executable file → Normal file
0
nix/hosts/dotfiles/waybar/style.css
Executable file → Normal file
27
nix/hosts/hilbert/configuration.nix
Normal file
27
nix/hosts/hilbert/configuration.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
../../modules/kanata/kanata.nix
|
||||
../../modules/efi.nix
|
||||
../../modules/laptop.nix
|
||||
../../modules/hypr.nix
|
||||
../../modules/virt.nix
|
||||
];
|
||||
|
||||
fileSystems."/media/music" = {
|
||||
device = "/dev/disk/by-uuid/dcd8c4de-96af-4d71-badb-5ed63b7c2c39";
|
||||
fsType = "xfs";
|
||||
};
|
||||
|
||||
fileSystems."/media/vm" = {
|
||||
device = "/dev/disk/by-uuid/9678bbf2-bf4d-43bb-b0e4-d7cb68915da1";
|
||||
fsType = "xfs";
|
||||
};
|
||||
|
||||
networking.hostName = "hilbert";
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
14
nix/hosts/mecca/hardware-configuration.nix → nix/hosts/hilbert/hardware-configuration.nix
Executable file → Normal file
14
nix/hosts/mecca/hardware-configuration.nix → nix/hosts/hilbert/hardware-configuration.nix
Executable file → Normal file
|
|
@ -8,24 +8,24 @@
|
|||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/9c7f9128-0371-4b7b-b0fb-86aeabe0491a";
|
||||
fsType = "ext4";
|
||||
{ device = "/dev/disk/by-uuid/28c806ac-9082-40fc-8bd3-da38f4c12ae5";
|
||||
fsType = "xfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/BE22-C08F";
|
||||
{ device = "/dev/disk/by-uuid/12CE-A600";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/8380ab37-d79c-4b25-888b-d457596dcfae"; }
|
||||
[ { device = "/dev/disk/by-uuid/44fbfcf1-382f-4224-ae4c-60c3379f2daf"; }
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
|
|
@ -33,8 +33,8 @@
|
|||
# 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.enp0s31f6.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
0
nix/hosts/home.nix
Executable file → Normal file
0
nix/hosts/home.nix
Executable file → Normal file
|
|
@ -1,16 +0,0 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
../../modules/kanata.nix
|
||||
../../modules/efi.nix
|
||||
../../modules/laptop.nix
|
||||
../../modules/hypr.nix
|
||||
];
|
||||
|
||||
networking.hostName = "mecca";
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
0
nix/modules/efi.nix
Executable file → Normal file
0
nix/modules/efi.nix
Executable file → Normal file
0
nix/modules/hypr.nix
Executable file → Normal file
0
nix/modules/hypr.nix
Executable file → Normal file
0
nix/modules/kanata/conf.kbd
Executable file → Normal file
0
nix/modules/kanata/conf.kbd
Executable file → Normal file
0
nix/modules/kanata/kanata.nix
Executable file → Normal file
0
nix/modules/kanata/kanata.nix
Executable file → Normal file
2
nix/modules/laptop.nix
Executable file → Normal file
2
nix/modules/laptop.nix
Executable file → Normal file
|
|
@ -17,7 +17,7 @@
|
|||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 20;
|
||||
|
||||
START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
|
||||
START_CHARGE_THRESH_BAT0 = 80; # 80 and below it starts to charge
|
||||
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
||||
};
|
||||
};
|
||||
|
|
|
|||
0
nix/modules/syncthing.nix
Executable file → Normal file
0
nix/modules/syncthing.nix
Executable file → Normal file
8
nix/modules/virt.nix
Normal file
8
nix/modules/virt.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, pkgs, inputs, ...}:
|
||||
|
||||
{
|
||||
programs.virt-manager.enable = true;
|
||||
users.groups.libvirtd.members = ["lunita"];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue