Compare commits

...

2 Commits

Author SHA1 Message Date
0386551a16
docs: update description of the flake 2024-10-07 17:03:16 +01:00
72ae8fa7d3
feat: switch to lix as the cppnix package 2024-10-07 17:01:09 +01:00
3 changed files with 99 additions and 5 deletions

View File

@ -115,6 +115,39 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems_4"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flakey-profile": {
"locked": {
"lastModified": 1712898590,
"narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=",
"owner": "lf-",
"repo": "flakey-profile",
"rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d",
"type": "github"
},
"original": {
"owner": "lf-",
"repo": "flakey-profile",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -299,6 +332,44 @@
"type": "github" "type": "github"
} }
}, },
"lix": {
"flake": false,
"locked": {
"lastModified": 1723503926,
"narHash": "sha256-Rosl9iA9MybF5Bud4BTAQ9adbY81aGmPfV8dDBGl34s=",
"rev": "bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2.tar.gz?rev=bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2"
},
"original": {
"type": "tarball",
"url": "https://git.lix.systems/lix-project/lix/archive/2.91.0.tar.gz"
}
},
"lix-module": {
"inputs": {
"flake-utils": "flake-utils",
"flakey-profile": "flakey-profile",
"lix": "lix",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1723510904,
"narHash": "sha256-zNW/rqNJwhq2lYmQf19wJerRuNimjhxHKmzrWWFJYts=",
"ref": "refs/tags/2.91.0",
"rev": "622a2253a071a1fb97a4d3c8103a91114acc1140",
"revCount": 104,
"type": "git",
"url": "https://git.lix.systems/lix-project/nixos-module"
},
"original": {
"ref": "refs/tags/2.91.0",
"type": "git",
"url": "https://git.lix.systems/lix-project/nixos-module"
}
},
"nix-darwin": { "nix-darwin": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -340,6 +411,7 @@
"anyrun": "anyrun", "anyrun": "anyrun",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"lix-module": "lix-module",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"woomer": "woomer" "woomer": "woomer"
@ -390,10 +462,25 @@
"type": "github" "type": "github"
} }
}, },
"systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"woomer": { "woomer": {
"inputs": { "inputs": {
"crane": "crane", "crane": "crane",
"flake-utils": "flake-utils", "flake-utils": "flake-utils_2",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]

View File

@ -1,5 +1,5 @@
{ {
description = "SpyHoodle Nix Configuration"; description = "SpyHoodle's personal nix system configurations";
inputs = { inputs = {
# Nixpkgs Unstable # Nixpkgs Unstable
@ -24,6 +24,10 @@
# Woomer # Woomer
woomer.url = "github:coffeeispower/woomer"; woomer.url = "github:coffeeispower/woomer";
woomer.inputs.nixpkgs.follows = "nixpkgs"; woomer.inputs.nixpkgs.follows = "nixpkgs";
# Lix Module
lix-module.url = "git+https://git.lix.systems/lix-project/nixos-module?ref=refs/tags/2.91.0";
lix-module.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, nixpkgs, home-manager, nix-darwin, ... } @ inputs: outputs = { self, nixpkgs, home-manager, nix-darwin, ... } @ inputs:
@ -67,6 +71,7 @@
# NixOS Modules # NixOS Modules
./systems/desktop ./systems/desktop
inputs.lix-module.nixosModules.default
]; ];
}; };
@ -75,6 +80,7 @@
system = "aarch64-darwin"; system = "aarch64-darwin";
specialArgs = { specialArgs = {
inherit username; inherit username;
inherit inputs;
}; };
modules = [ modules = [
# Home Manager Modules # Home Manager Modules
@ -83,6 +89,7 @@
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit username; inherit username;
inherit inputs;
pkgs = nixpkgs_aarch64_darwin; pkgs = nixpkgs_aarch64_darwin;
}; };
home-manager.users.${username}.imports = [ home-manager.users.${username}.imports = [
@ -93,6 +100,7 @@
# Nix Darwin Modules # Nix Darwin Modules
./systems/laptop ./systems/laptop
inputs.lix-module.nixosModules.default
]; ];
}; };

View File

@ -1,9 +1,8 @@
{ pkgs, lib, inputs, ... }:
{ pkgs, lib, ... }:
{ {
nix = { nix = {
package = pkgs.nixVersions.latest; package = lib.mkForce inputs.lix-module.packages.${pkgs.stdenv.hostPlatform.system}.default;
settings = { settings = {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true; auto-optimise-store = true;