This commit is contained in:
emily 2024-02-28 16:20:45 +01:00
parent d8f8e62dfb
commit 66f3a19d26
Signed by: emily
GPG key ID: F6F4C66207FCF995
8 changed files with 56 additions and 82 deletions

View file

@ -70,7 +70,7 @@
interactiveShellInit = '' interactiveShellInit = ''
set -U fish_greeting set -U fish_greeting
''; '';
loginShellInit = '' loginShellInit = lib.mkIf config.kyouma.machine-type.graphical ''
[ (tty) = /dev/tty1 ] ;and exec Hyprland [ (tty) = /dev/tty1 ] ;and exec Hyprland
''; '';
}; };

View file

@ -10,11 +10,10 @@
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
services.openssh.enable = true; environment.systemPackages = with pkgs; [
colmena
environment.systemPackages = [ curl
pkgs.curl gitMinimal
pkgs.gitMinimal
]; ];
services.xserver.xkb = { services.xserver.xkb = {
@ -24,13 +23,13 @@
console.useXkbConfig = true; console.useXkbConfig = true;
console.earlySetup = true; console.earlySetup = true;
networking.networkmanager.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "root" "@wheel" ]; nix.settings.trusted-users = [ "root" "@wheel" ];
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
users.users.root.openssh.authorizedKeys.keys = [ services.openssh.enable = true;
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/+iN407+HsfHbbC3tfdA8Yf4TZ08qXQMb4tb/SDAs+ emily@card"
];
users.users.emily = { users.users.emily = {
isNormalUser = true; isNormalUser = true;
@ -67,9 +66,6 @@
interactiveShellInit = '' interactiveShellInit = ''
set -U fish_greeting set -U fish_greeting
''; '';
loginShellInit = ''
[ (tty) = /dev/tty1 ] ;and exec Hyprland
'';
}; };
}; };
system.stateVersion = "23.11"; system.stateVersion = "23.11";

View file

@ -26,7 +26,7 @@
}; };
deployment = { deployment = {
targetHost = "192.168.122.152"; targetHost = null;
targetUser = "emily"; targetUser = "emily";
}; };

View file

@ -0,0 +1,40 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
# fileSystems."/" =
# { device = "/dev/disk/by-uuid/92cdb49a-4f15-4880-bf25-2ff1de20119c";
# fsType = "btrfs";
# options = [ "subvol=nixos" ];
# };
#
# fileSystems."/home" =
# { device = "/dev/disk/by-uuid/92cdb49a-4f15-4880-bf25-2ff1de20119c";
# fsType = "btrfs";
# options = [ "subvol=home" ];
# };
#
# fileSystems."/boot" =
# { device = "/dev/disk/by-uuid/DB0D-757F";
# 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.interfaces.enp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -1,46 +0,0 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/cbf4d839-1afd-4ae8-9295-dd50ec25f713";
fsType = "btrfs";
options = [ "subvol=nixos" ];
};
boot.initrd.luks.devices."uwu".device = "/dev/disk/by-uuid/5d4cd902-f6ce-48f7-b0ca-0aab29230304";
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/cbf4d839-1afd-4ae8-9295-dd50ec25f713";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/270E-304D";
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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wwp0s20f0u3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -2,39 +2,24 @@
{ {
imports = imports =
[ (modulesPath + "/profiles/qemu-guest.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
# fileSystems."/" =
# { device = "/dev/disk/by-uuid/92cdb49a-4f15-4880-bf25-2ff1de20119c";
# fsType = "btrfs";
# options = [ "subvol=nixos" ];
# };
#
# fileSystems."/home" =
# { device = "/dev/disk/by-uuid/92cdb49a-4f15-4880-bf25-2ff1de20119c";
# fsType = "btrfs";
# options = [ "subvol=home" ];
# };
#
# fileSystems."/boot" =
# { device = "/dev/disk/by-uuid/DB0D-757F";
# fsType = "vfat";
# };
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (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 # 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`. # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wwp0s20f0u3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
#powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
} }

View file

@ -499,7 +499,7 @@
format-wifi = " {essid}"; format-wifi = " {essid}";
format-ethernet = " Wired"; format-ethernet = " Wired";
format-disconnected = " Disconnected"; format-disconnected = " Disconnected";
on-click = "nm-connection-editor"; on-click = "${networkmanagerapplet}/bin/nm-connection-editor";
}; };
pulseaudio = { pulseaudio = {
scroll-step = 5; scroll-step = 5;

View file

@ -54,6 +54,5 @@ in {
message = "hosts of machine-type.protable must also be machine-type.physical"; message = "hosts of machine-type.protable must also be machine-type.physical";
} }
]; ];
deployment.tags = mkIf cfg.router [ "router" ];
}; };
} }