WIP: Switch to NixOS #5
10 changed files with 149 additions and 163 deletions
|
@ -15,7 +15,8 @@
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
nixosConfigurations.Mirkwood = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.Mirkwood = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
@ -1,21 +1,4 @@
|
||||||
{
|
{
|
||||||
"bash-language-server": "5.4.0",
|
"nil": "2024-08-06",
|
||||||
"css-lsp": "4.10.0",
|
"nixpkgs-fmt": "1.3.0"
|
||||||
"docker-compose-language-service": "0.2.0",
|
|
||||||
"dockerfile-language-server": "0.13.0",
|
|
||||||
"eslint-lsp": "4.10.0",
|
|
||||||
"google-java-format": "v1.23.0",
|
|
||||||
"html-lsp": "4.10.0",
|
|
||||||
"java-debug-adapter": "0.58.0",
|
|
||||||
"jdtls": "v1.38.0",
|
|
||||||
"json-lsp": "4.10.0",
|
|
||||||
"lemminx": "0.27.1",
|
|
||||||
"lua-language-server": "3.10.5",
|
|
||||||
"prettier": "3.3.3",
|
|
||||||
"prettierd": "0.25.3",
|
|
||||||
"stylua": "v0.20.0",
|
|
||||||
"taplo": "0.9.3",
|
|
||||||
"tree-sitter-cli": "v0.22.6",
|
|
||||||
"typescript-language-server": "4.3.3",
|
|
||||||
"yaml-language-server": "1.15.0"
|
|
||||||
}
|
}
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
|
||||||
|
@ -14,21 +15,22 @@
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/fcb4b991-0704-45c0-9d31-bd858e1476aa";
|
{
|
||||||
|
device = "/dev/disk/by-uuid/fcb4b991-0704-45c0-9d31-bd858e1476aa";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-2d20d058-3ea8-41cf-90fa-872f46960add".device = "/dev/disk/by-uuid/2d20d058-3ea8-41cf-90fa-872f46960add";
|
boot.initrd.luks.devices."luks-2d20d058-3ea8-41cf-90fa-872f46960add".device = "/dev/disk/by-uuid/2d20d058-3ea8-41cf-90fa-872f46960add";
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/8498-FFAF";
|
{
|
||||||
|
device = "/dev/disk/by-uuid/8498-FFAF";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ { device = "/dev/disk/by-uuid/dba8a94b-d7b6-4ac1-a0bb-82d6538ff331"; }
|
[{ device = "/dev/disk/by-uuid/dba8a94b-d7b6-4ac1-a0bb-82d6538ff331"; }];
|
||||||
];
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue