Compare commits

..

No commits in common. "20f09d62477eadd42f048b9408e0135b07998751" and "48570036bfa6fc8ecdf94c8998d9f34a64e662b8" have entirely different histories.

15 changed files with 174 additions and 107 deletions

View file

@ -183,16 +183,6 @@
modules = defaultModules { inherit system username hostName; }; modules = defaultModules { inherit system username hostName; };
}; };
## Personal ## Personal
Vanguard =
let
system = "x86_64-linux";
username = "pixelifytica";
hostName = "Vanguard";
in
nixpkgs.lib.nixosSystem {
specialArgs = defaultSpecialArgs { inherit system; };
modules = defaultModules { inherit system username hostName; };
};
Northstar = Northstar =
let let
system = "x86_64-linux"; system = "x86_64-linux";
@ -203,6 +193,16 @@
specialArgs = defaultSpecialArgs { inherit system; }; specialArgs = defaultSpecialArgs { inherit system; };
modules = defaultModules { inherit system username hostName; }; modules = defaultModules { inherit system username hostName; };
}; };
Vanguard =
let
system = "x86_64-linux";
username = "pixelifytica";
hostName = "Vanguard";
in
nixpkgs.lib.nixosSystem {
specialArgs = defaultSpecialArgs { inherit system; };
modules = defaultModules { inherit system username hostName; };
};
## Work ## Work
Tone = Tone =
let let
@ -214,11 +214,11 @@
specialArgs = defaultSpecialArgs { inherit system; }; specialArgs = defaultSpecialArgs { inherit system; };
modules = defaultModules { inherit system username hostName; }; modules = defaultModules { inherit system username hostName; };
}; };
Ronin = Scorch =
let let
system = "x86_64-linux"; system = "x86_64-linux";
username = "elitherl"; username = "elitherl";
hostName = "Ronin"; hostName = "Scorch";
in in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
specialArgs = defaultSpecialArgs { inherit system; }; specialArgs = defaultSpecialArgs { inherit system; };

View file

@ -1,12 +1,24 @@
{ config, lib, ... }: {
config,
lib,
pkgs,
...
}:
{ {
imports = [ imports = [
./personal.nix ./personal.nix
./desktop/plasma/default.nix ./desktop/plasma/default.nix
]; ];
home.packages = with pkgs; [ prusa-slicer ];
programs.plasma = lib.mkIf config.programs.plasma.enable { programs.plasma = lib.mkIf config.programs.plasma.enable {
configFile = { configFile.kcminputrc."Libinput/1739/52759/SYNA32AA:00 06CB:CE17 Touchpad".NaturalScroll = true;
kcminputrc."Libinput/1739/52759/SYNA32AA:00 06CB:CE17 Touchpad".NaturalScroll = true;
}; };
wayland.windowManager.sway = lib.mkIf config.wayland.windowManager.sway.enable {
config.workspaceOutputAssign = [
{
output = "eDP-1";
workspace = "1";
}
];
}; };
} }

View file

@ -1,12 +0,0 @@
{ config, lib, ... }:
{
imports = [
./work.nix
./desktop/plasma/default.nix
];
programs.plasma = lib.mkIf config.programs.plasma.enable {
configFile = {
kcminputrc."Libinput/1160/4132/DELL0A21:00 0488:1024 Touchpad".NaturalScroll = true;
};
};
}

10
home/Scorch.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, lib, ... }:
{
imports = [
./work.nix
./desktop/plasma/default.nix
];
wayland.windowManager.sway = lib.mkIf config.wayland.windowManager.sway.enable {
config.output."Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5";
};
}

View file

@ -1,13 +1,56 @@
{ pkgs, ... }: { config, lib, ... }:
{ {
imports = [ imports = [
./work.nix ./work.nix
./desktop/plasma/default.nix ./desktop/plasma/default.nix
]; ];
xdg.configFile = { programs.plasma = lib.mkIf config.programs.plasma.enable {
"autostart/twinkle.desktop".source = "${pkgs.twinkle}/share/applications/twinkle.desktop"; configFile = {
"autostart/teams-for-linux.desktop".source = "${pkgs.teams-for-linux}/share/applications/teams-for-linux.desktop"; kcminputrc."Libinput/1160/4132/DELL0A21:00 0488:1024 Touchpad".NaturalScroll = true;
"autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop"; };
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop"; };
wayland.windowManager.sway = lib.mkIf config.wayland.windowManager.sway.enable {
config = {
output."eDP-1".scale = "1.25";
workspaceOutputAssign = [
{
output = "eDP-1";
workspace = "1";
}
];
};
};
services.kanshi = lib.mkIf config.wayland.windowManager.sway.enable {
enable = true;
settings =
let
laptopScreen = {
criteria = "eDP-1";
scale = 1.25;
position = "2560,576";
};
monitor = {
criteria = "Dell Inc. DELL P3223QE CCG8YN3";
scale = 1.5;
position = "0,0";
};
in
[
{
profile = {
name = "undocked";
outputs = [ laptopScreen ];
};
}
{
profile = {
name = "docked";
outputs = [
laptopScreen
monitor
];
};
}
];
}; };
} }

View file

@ -1,4 +1,9 @@
{ pkgs, ... }: {
config,
lib,
pkgs,
...
}:
{ {
imports = [ imports = [
./personal.nix ./personal.nix
@ -7,9 +12,6 @@
./desktop/plasma/default.nix ./desktop/plasma/default.nix
]; ];
xdg.configFile = { xdg.configFile = {
"autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop";
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop";
"autostart/webcord.desktop".source = "${pkgs.webcord}/share/applications/webcord.desktop";
"autostart/org.kde.ktorrent.desktop".source = "${pkgs.kdePackages.ktorrent}/share/applications/org.kde.ktorrent.desktop"; "autostart/org.kde.ktorrent.desktop".source = "${pkgs.kdePackages.ktorrent}/share/applications/org.kde.ktorrent.desktop";
}; };
} }

View file

@ -23,7 +23,10 @@
whatsapp-for-linux whatsapp-for-linux
teams-for-linux teams-for-linux
]; ];
xdg.configFile."teams-for-linux/config.json".text = builtins.toJSON { xdg.configFile = {
"autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop";
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop";
"teams-for-linux/config.json".text = builtins.toJSON {
awayOnSystemIdle = true; awayOnSystemIdle = true;
closeAppOnCross = true; closeAppOnCross = true;
followSystemTheme = true; followSystemTheme = true;
@ -31,4 +34,5 @@
optInTeamsV2 = true; optInTeamsV2 = true;
spellCheckerLanguages = [ "en_GB" ]; spellCheckerLanguages = [ "en_GB" ];
}; };
};
} }

View file

@ -8,4 +8,7 @@
openscad openscad
kicad-small kicad-small
]; ];
xdg.configFile = {
"autostart/webcord.desktop".source = "${pkgs.webcord}/share/applications/webcord.desktop";
};
} }

View file

@ -6,8 +6,8 @@
}: }:
{ {
imports = [ ./default.nix ]; imports = [ ./default.nix ];
home.packages = [ home.packages = with pkgs; [
pkgs.twinkle twinkle
(import ./scripts/ukaea-vpn.nix pkgs) (import ./scripts/ukaea-vpn.nix pkgs)
]; ];
programs.git.userEmail = config.accounts.email.accounts.outlook.address; programs.git.userEmail = config.accounts.email.accounts.outlook.address;
@ -15,4 +15,8 @@
proton.primary = lib.mkForce false; proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true; outlook.primary = lib.mkForce true;
}; };
xdg.configFile = {
"autostart/twinkle.desktop".source = "${pkgs.twinkle}/share/applications/twinkle.desktop";
"autostart/teams-for-linux.desktop".source = "${pkgs.teams-for-linux}/share/applications/teams-for-linux.desktop";
};
} }

View file

@ -1,26 +0,0 @@
{ pkgs, ... }:
{
imports = [
./laptop.nix
./desktop/plasma.nix
];
boot.initrd = {
secrets = {
"/crypto_keyfile.bin" = null;
};
luks.devices."luks-761eeb11-3091-4142-9232-4fb33165eccd" = {
device = "/dev/disk/by-uuid/761eeb11-3091-4142-9232-4fb33165eccd";
keyFile = "/crypto_keyfile.bin";
};
};
environment = {
etc."ppp/options".text = ''
ipcp-accept-remote
'';
systemPackages = with pkgs; [ openfortivpn ];
};
services = {
samba.enable = true;
hardware.bolt.enable = true;
};
}

25
system/Scorch.nix Normal file
View file

@ -0,0 +1,25 @@
{ pkgs, ... }:
{
imports = [ ./desktop/plasma.nix ];
boot = {
loader.efi.efiSysMountPoint = "/boot/efi";
initrd = {
secrets = {
"/crypto_keyfile.bin" = null;
};
luks.devices."luks-47d34268-5100-4eba-b34d-220f4239c1cb" = {
device = "/dev/disk/by-uuid/47d34268-5100-4eba-b34d-220f4239c1cb";
keyFile = "/crypto_keyfile.bin";
};
};
};
environment = {
etc."ppp/options".text = ''
ipcp-accept-remote
'';
systemPackages = with pkgs; [
openfortivpn
samba
];
};
}

View file

@ -1,25 +1,26 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./desktop/plasma.nix ]; imports = [
boot = { ./laptop.nix
loader.efi.efiSysMountPoint = "/boot/efi"; ./desktop/plasma.nix
initrd = { ];
boot.initrd = {
secrets = { secrets = {
"/crypto_keyfile.bin" = null; "/crypto_keyfile.bin" = null;
}; };
luks.devices."luks-47d34268-5100-4eba-b34d-220f4239c1cb" = { luks.devices."luks-761eeb11-3091-4142-9232-4fb33165eccd" = {
device = "/dev/disk/by-uuid/47d34268-5100-4eba-b34d-220f4239c1cb"; device = "/dev/disk/by-uuid/761eeb11-3091-4142-9232-4fb33165eccd";
keyFile = "/crypto_keyfile.bin"; keyFile = "/crypto_keyfile.bin";
}; };
}; };
};
environment = { environment = {
etc."ppp/options".text = '' etc."ppp/options".text = ''
ipcp-accept-remote ipcp-accept-remote
''; '';
systemPackages = with pkgs; [ systemPackages = with pkgs; [ openfortivpn ];
openfortivpn };
samba services = {
]; samba.enable = true;
hardware.bolt.enable = true;
}; };
} }

View file

@ -15,6 +15,7 @@
}; };
steam-hardware.enable = true; steam-hardware.enable = true;
}; };
programs.steam = { programs.steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;

View file

@ -14,40 +14,35 @@
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [
"xhci_pci" "xhci_pci"
"thunderbolt" "ahci"
"vmd"
"nvme"
"usbhid"
"usb_storage" "usb_storage"
"usbhid"
"sd_mod" "sd_mod"
"rtsx_pci_sdmmc"
]; ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/44c11386-0af8-4954-93bc-963a8e071672"; device = "/dev/disk/by-uuid/0c6931d0-50c3-47b0-98c8-d295ddeb2004";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-bf1eab3a-6d92-430d-a282-8dd4c9efe2c7".device = "/dev/disk/by-uuid/bf1eab3a-6d92-430d-a282-8dd4c9efe2c7"; boot.initrd.luks.devices."luks-08822b9c-e9d6-424c-bc75-373f8667526d".device = "/dev/disk/by-uuid/08822b9c-e9d6-424c-bc75-373f8667526d";
fileSystems."/boot" = { fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/85D5-B6EC"; device = "/dev/disk/by-uuid/6009-89FC";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ { device = "/dev/disk/by-uuid/e65e5e4d-2084-4e6b-9255-3b36cba1529f"; } ]; swapDevices = [ { device = "/dev/disk/by-uuid/ff9627a7-820c-4628-a040-2b665688b893"; } ];
# 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.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s13f0u1u2.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";

View file

@ -14,35 +14,40 @@
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [
"xhci_pci" "xhci_pci"
"ahci" "thunderbolt"
"usb_storage" "vmd"
"nvme"
"usbhid" "usbhid"
"usb_storage"
"sd_mod" "sd_mod"
"rtsx_pci_sdmmc"
]; ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/0c6931d0-50c3-47b0-98c8-d295ddeb2004"; device = "/dev/disk/by-uuid/44c11386-0af8-4954-93bc-963a8e071672";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-08822b9c-e9d6-424c-bc75-373f8667526d".device = "/dev/disk/by-uuid/08822b9c-e9d6-424c-bc75-373f8667526d"; boot.initrd.luks.devices."luks-bf1eab3a-6d92-430d-a282-8dd4c9efe2c7".device = "/dev/disk/by-uuid/bf1eab3a-6d92-430d-a282-8dd4c9efe2c7";
fileSystems."/boot/efi" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6009-89FC"; device = "/dev/disk/by-uuid/85D5-B6EC";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ { device = "/dev/disk/by-uuid/ff9627a7-820c-4628-a040-2b665688b893"; } ]; swapDevices = [ { device = "/dev/disk/by-uuid/e65e5e4d-2084-4e6b-9255-3b36cba1529f"; } ];
# 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.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s13f0u1u2.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";