This commit is contained in:
2026-07-12 18:25:07 +01:00
parent 1edf4af07f
commit ac284e6cfb
8 changed files with 116 additions and 142 deletions
Generated
+1 -53
View File
@@ -70,63 +70,11 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": {
"locked": {
"lastModified": 1743095683,
"narHash": "sha256-gWd4urRoLRe8GLVC/3rYRae1h+xfQzt09xOfb0PaHSk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5e5402ecbcb27af32284d4a62553c019a3a49ea6",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"kutu": "kutu", "kutu": "kutu",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2"
"spicetify-nix": "spicetify-nix"
}
},
"spicetify-nix": {
"inputs": {
"nixpkgs": "nixpkgs_3",
"systems": "systems"
},
"locked": {
"lastModified": 1743595372,
"narHash": "sha256-e3x1mhpPpYgyyin9j/VbrBpOT5PFpEfx2hkxVZuJZhg=",
"owner": "Gerg-L",
"repo": "spicetify-nix",
"rev": "543f12dd14c62ddee79ab79fbfd8726f312b89ff",
"type": "github"
},
"original": {
"owner": "Gerg-L",
"ref": "24.11",
"repo": "spicetify-nix",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
} }
} }
}, },
+49 -46
View File
@@ -4,58 +4,61 @@
kutu.url = "git+https://git.syedm.dev/syedm/kutu.rb.git"; kutu.url = "git+https://git.syedm.dev/syedm/kutu.rb.git";
spicetify-nix.url = "github:Gerg-L/spicetify-nix/24.11";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = inputs@{ nixpkgs, kutu, home-manager, spicetify-nix, ... }: outputs =
let {
system = "x86_64-linux"; kutu,
commonModules = [ nixpkgs,
./hosts/common.nix home-manager,
home-manager.nixosModules.home-manager ...
{ }:
home-manager.users.me = import ./home/common.nix; let
home-manager.extraSpecialArgs = { inherit inputs; }; system = "x86_64-linux";
home-manager.users.root = import ./home/root.nix; commonModules = [
} ./hosts/common.nix
]; home-manager.nixosModules.home-manager
pkgs = import nixpkgs { {
inherit system; home-manager.users.me = import ./home/common.nix;
}; home-manager.users.root = import ./home/root.nix;
in { }
nixosConfigurations = {
syedm = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = commonModules ++ [
./hosts/syedm
];
};
tardis = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = commonModules ++ [
./hosts/tardis
{ home-manager.users.me = import ./home/tardis.nix; }
];
};
};
# For development
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
nil
nixfmt
lua-language-server
stylua
]; ];
pkgs = import nixpkgs {
inherit system;
};
in
{
nixosConfigurations = {
syedm = nixpkgs.lib.nixosSystem {
inherit system;
modules = commonModules ++ [
./hosts/syedm
];
};
tardis = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit kutu; };
modules = commonModules ++ [
./hosts/tardis
{ home-manager.users.me = import ./home/tardis.nix; }
];
};
};
# For development
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
nixd
nixfmt
lua-language-server
stylua
];
};
}; };
};
} }
+1 -1
View File
@@ -12,7 +12,7 @@ vim.lsp.config("lua_ls", {
}, },
}) })
local servers = { "clangd", "nil", "solargraph", "hls" } local servers = { "clangd", "solargraph", "hls", "nixd" }
for _, server in ipairs(servers) do for _, server in ipairs(servers) do
vim.lsp.config(server, { capabilities = capabilities }) vim.lsp.config(server, { capabilities = capabilities })
+1 -1
View File
@@ -1,4 +1,4 @@
{ pkgs, ... }: { ... }:
{ {
imports = [ imports = [
+1 -5
View File
@@ -1,11 +1,7 @@
{ inputs, pkgs, ... }: { ... }:
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.system};
in
{ {
imports = [ imports = [
inputs.spicetify-nix.homeManagerModules.spicetify
./battery ./battery
./dunst ./dunst
./kitty ./kitty
+32 -17
View File
@@ -1,29 +1,44 @@
{ config, lib, pkgs, modulesPath, ... }: {
config,
lib,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"sd_mod"
"sdhci_pci"
];
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/c5fedde6-79d4-4a44-92e4-2aa764553875"; device = "/dev/disk/by-uuid/c5fedde6-79d4-4a44-92e4-2aa764553875";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/510C-E000"; device = "/dev/disk/by-uuid/510C-E000";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [
}; "fmask=0077"
"dmask=0077"
swapDevices =
[ { device = "/dev/disk/by-uuid/712d25ef-146d-4c66-b6d4-1b64491a974e"; }
]; ];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/712d25ef-146d-4c66-b6d4-1b64491a974e"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+2 -2
View File
@@ -1,7 +1,7 @@
{ {
kutu,
lib, lib,
pkgs, pkgs,
inputs,
... ...
}: }:
@@ -30,7 +30,7 @@
prismlauncher prismlauncher
spotify spotify
inputs.kutu.packages.${stdenv.hostPlatform.system}.default kutu.packages.${stdenv.hostPlatform.system}.default
] ]
); );
+29 -17
View File
@@ -1,29 +1,41 @@
{ config, lib, pkgs, modulesPath, ... }: {
config,
lib,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "vmd" "nvme" ]; boot.initrd.availableKernelModules = [
"xhci_pci"
"vmd"
"nvme"
];
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/29a53eeb-befc-4512-9255-e1c5f1cf55ae"; device = "/dev/disk/by-uuid/29a53eeb-befc-4512-9255-e1c5f1cf55ae";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/0951-B8D1"; device = "/dev/disk/by-uuid/0951-B8D1";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [
}; "fmask=0077"
"dmask=0077"
swapDevices =
[ { device = "/dev/disk/by-uuid/659310da-4655-461e-a992-6e62d7a0362d"; }
]; ];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/659310da-4655-461e-a992-6e62d7a0362d"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;