restructure file positions and remove unnecesary
This commit is contained in:
parent
39668bdcf4
commit
ec1d61a902
|
@ -1,2 +0,0 @@
|
|||
# an non-existant host for testing purposes
|
||||
{...}:{}
|
|
@ -1,6 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
# 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 + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/vda2";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot/efi" =
|
||||
{ device = "/dev/vda1";
|
||||
fsType = "vfat";
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
services.spice-webdavd.enable = true;
|
||||
|
||||
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.enp1s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./luks.nix
|
||||
];
|
||||
|
||||
programs.steam.enable = true;
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
renice = 10;
|
||||
};
|
||||
# Warning: GPU optimisations have the potential to damage hardware
|
||||
gpu = {
|
||||
apply_gpu_optimisations = "accept-responsibility";
|
||||
gpu_device = 0;
|
||||
amd_performance_level = "high";
|
||||
};
|
||||
};
|
||||
};
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
START_CHARGE_THRESH_BAT0 = 75;
|
||||
STOP_CHARGE_THRESH_BAT0 = 80;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
# 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" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/39ab92ec-67bb-49ef-b458-90d43b63d1c6";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-8dd98ede-339f-470d-97f9-92dd2d6687f7".device = "/dev/disk/by-uuid/8dd98ede-339f-470d-97f9-92dd2d6687f7";
|
||||
|
||||
fileSystems."/boot/efi" =
|
||||
{ device = "/dev/disk/by-uuid/50A2-D8BD";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/825ae105-4f03-44a0-81c6-0da642d0c77d"; }
|
||||
];
|
||||
|
||||
# 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.enp0s25.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
# Setup keyfile
|
||||
boot.initrd.secrets = {
|
||||
"/crypto_keyfile.bin" = null;
|
||||
};
|
||||
# Enable swap on luks
|
||||
boot.initrd.luks.devices."luks-55171762-776c-4297-a762-1a570618a78a".device = "/dev/disk/by-uuid/55171762-776c-4297-a762-1a570618a78a";
|
||||
boot.initrd.luks.devices."luks-55171762-776c-4297-a762-1a570618a78a".keyFile = "/crypto_keyfile.bin";
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
programs.steam.enable = true;
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
renice = 10;
|
||||
};
|
||||
# Warning: GPU optimisations have the potential to damage hardware
|
||||
gpu = {
|
||||
apply_gpu_optimisations = "accept-responsibility";
|
||||
gpu_device = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
# 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" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" "wl" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/bdad9443-41e0-4a8f-b5b3-a93f51dc3a2a";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-1e816279-2666-41a6-bcb9-f97c2f7b3102".device = "/dev/disk/by-uuid/1e816279-2666-41a6-bcb9-f97c2f7b3102";
|
||||
|
||||
fileSystems."/boot/efi" =
|
||||
{ device = "/dev/disk/by-uuid/993B-1245";
|
||||
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.enp8s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp0s20u3.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./luks.nix
|
||||
];
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
# 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" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/f1a894aa-8e45-426b-b3ab-e4da09f5995f";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-f8bdd267-e062-42e4-813f-4f2acc51b335".device = "/dev/disk/by-uuid/f8bdd267-e062-42e4-813f-4f2acc51b335";
|
||||
|
||||
fileSystems."/boot/efi" =
|
||||
{ device = "/dev/disk/by-uuid/BD84-95A7";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/4d479659-d73d-4d60-9258-870d7a16662f"; }
|
||||
];
|
||||
|
||||
# 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.wlp0s12f0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
# init keyfile
|
||||
boot.initrd.secrets = {
|
||||
"/crypto_keyfile.bin" = null;
|
||||
};
|
||||
|
||||
# enable swap on luks
|
||||
boot.initrd.luks.devices."luks-4130c26c-7546-42e9-9d61-8f112e244460".device =
|
||||
"/dev/disk/by-uuid/4130c26c-7546-42e9-9d61-8f112e244460";
|
||||
boot.initrd.luks.devices."luks-4130c26c-7546-42e9-9d61-8f112e244460".keyFile =
|
||||
"/crypto_keyfile.bin";
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
# copy this file to "system.nix" and configure it for your system !
|
||||
{
|
||||
user = "saturn";
|
||||
host = "qemu";
|
||||
prettyHost = "🪐 saturnOS";
|
||||
# packages = {
|
||||
# }
|
||||
# userPackages = {
|
||||
# }
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
{ ... } :
|
||||
# . + . . . . . .
|
||||
# . . . *
|
||||
# . * . . . . . . + .
|
||||
# . . + . . .
|
||||
# . . . . . . .
|
||||
# . . . +. + .
|
||||
# . . . .
|
||||
# . . . * . . . . + .
|
||||
# + . . . +
|
||||
# . . + .+. .. *
|
||||
# . 。 • ゚ 。 . +
|
||||
# . . 。 。 . . . . .
|
||||
# . 。 ඞ 。 . • . . + +
|
||||
# ゚ Hive was an Impostor + .
|
||||
# ' 2 Impostors remain + .+. •
|
||||
# ゚ . . , . . , + .
|
||||
# . . . + . . . + .+. .
|
||||
# . . . . . . . . ! /
|
||||
# * . . . + . . - O -
|
||||
# . . . + . . * . . / |
|
||||
# . + . . . .. + .
|
||||
# . . . . * . * . +.. . *
|
||||
# . . . . . . . . + . . +
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "hive";
|
||||
configDir = "/home/hive/.config/syncthing";
|
||||
overrideDevices = false;
|
||||
overrideFolders = false;
|
||||
devices = { "impostor" = {
|
||||
id = "XBG44HU-OVOC6RN-4DHMDRH-WPL7OPW-XBYYOMK-DV5GGGA-LEP6HCJ-QVPMSAI";
|
||||
introducer = true;
|
||||
}; };
|
||||
folders = {
|
||||
"ssh" = {
|
||||
id = "mkkgo-chqwk";
|
||||
path = "~/.ssh";
|
||||
devices = [ "impostor" ];
|
||||
ignorePerms = false;
|
||||
};
|
||||
"decsync" = {
|
||||
id = "20lk1-ims07";
|
||||
path = "~/.local/share/decsync";
|
||||
devices = [ "impostor" ];
|
||||
};
|
||||
"scripts" = {
|
||||
id = "6nunu-quun5";
|
||||
path = "~/.local/bin/scripts";
|
||||
devices = [ "impostor" ];
|
||||
};
|
||||
"dotfiles" = {
|
||||
id = "sjgew-vdpfl";
|
||||
path = "~/.dotfiles";
|
||||
devices = [ "impostor" ];
|
||||
};
|
||||
"password-store" = {
|
||||
id = "tadwa-1va0d";
|
||||
path = "~/.local/share/pass";
|
||||
devices = [ "impostor" ];
|
||||
};
|
||||
"notes" = {
|
||||
id = "y0a00-2ha8l";
|
||||
path = "~/Notes";
|
||||
devices = [ "impostor" ];
|
||||
};
|
||||
"documents" = {
|
||||
id = "y7ecb-v9ds7";
|
||||
path = "~/Documents";
|
||||
devices = [ "impostor" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,81 +0,0 @@
|
|||
# all my home stuff :3
|
||||
sysConf: { config, pkgs, lib, ... }:
|
||||
{
|
||||
home.sessionVariables = {
|
||||
# system configuration
|
||||
EDITOR = "nvim";
|
||||
|
||||
# cleanup homedir
|
||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||
|
||||
# fish config
|
||||
fish_greeting = "✨️ heya ${sysConf.user}, welcome to ${sysConf.prettyHost} ~";
|
||||
};
|
||||
# installing my packages uvu
|
||||
home.packages = with pkgs; [
|
||||
bat
|
||||
diceware
|
||||
pwgen
|
||||
kitty
|
||||
schildichat-desktop
|
||||
dino
|
||||
mangohud
|
||||
termpdfpy
|
||||
lollypop
|
||||
skim
|
||||
syncthing
|
||||
armcord
|
||||
ripgrep
|
||||
tmate
|
||||
btop
|
||||
firefox
|
||||
apostrophe
|
||||
warp
|
||||
syncplay
|
||||
mpv
|
||||
wl-clipboard
|
||||
adw-gtk3
|
||||
# some bullshit to get gnome apps to install withotu a prefix
|
||||
] ++ (with pkgs.gnome; with pkgs.gnomeExtensions; [
|
||||
gnome-tweaks
|
||||
dconf-editor
|
||||
night-theme-switcher
|
||||
rounded-window-corners
|
||||
appindicator
|
||||
]);
|
||||
|
||||
# configure programs
|
||||
programs.home-manager.enable = true;
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAbbrs = {
|
||||
nxs = "nix search nixpkgs";
|
||||
nxr = "nix run nixpkgs#";
|
||||
nxsh = "nix shell nixpkgs#";
|
||||
e = "edit";
|
||||
nxb = "sudo nixos-rebuild switch";
|
||||
nxu = "sudo nixos-rebuild boot --upgrade";
|
||||
nxc = "sudo nix-collect-garbage -d";
|
||||
};
|
||||
interactiveShellInit = ''
|
||||
fish_add_path ~/.local/bin
|
||||
fish_add_path ~/.local/bin/scripts
|
||||
fish_add_path ~/.local/share/cargo/bin
|
||||
fish_add_path /var/lib/flatpak/exports/bin
|
||||
fish_vi_key_bindings
|
||||
'';
|
||||
};
|
||||
programs.password-store = {
|
||||
enable = true;
|
||||
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
|
||||
settings = {
|
||||
PASSWORD_STORE_DIR = "${config.xdg.dataHome}/pass";
|
||||
PASSWORD_STORE_CLIP_TIME = "60";
|
||||
};
|
||||
};
|
||||
programs.browserpass.enable = true;
|
||||
programs.gpg.enable = true;
|
||||
|
||||
# don't uh, change this or something might break lol idk
|
||||
home.stateVersion = "22.11";
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
{ ... }: { }
|
|
@ -1,2 +0,0 @@
|
|||
{ ... }:
|
||||
{ }
|
Loading…
Reference in New Issue