kinda working

This commit is contained in:
Ivan Kirilov Dimitrov 2024-06-10 21:16:46 +02:00
parent c8fe240fb8
commit 196683aceb
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
2 changed files with 63 additions and 30 deletions

View File

@ -492,6 +492,26 @@
"type": "github"
}
},
"parts": {
"inputs": {
"nixpkgs-lib": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1717285511,
"narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat_3",
@ -528,7 +548,8 @@
"hosts": "hosts",
"ide": "ide",
"nid": "nid",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"parts": "parts"
}
},
"systems": {

View File

@ -5,6 +5,10 @@
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
hosts = {
url = "github:StevenBlack/hosts";
inputs.nixpkgs.follows = "nixpkgs";
@ -19,34 +23,42 @@
};
catppuccin.url = "github:catppuccin/nix";
};
outputs = { nixpkgs, home-manager, hosts, ide, nid, catppuccin, ... }:
let
system = "x86_64-linux";
stateVersion = "24.05";
my-overlay = self: super: {
scripts = (super.buildEnv { name = "scripts"; paths = [ ./. ]; });
};
pkgs = import nixpkgs {
inherit system;
overlays = [ my-overlay ];
};
modules = import ./modules {
inherit system nixpkgs pkgs ide my-overlay;
};
home = import ./home {
inherit stateVersion pkgs modules home-manager nid catppuccin;
};
nixos = import ./nixos {
inherit stateVersion system nixpkgs modules hosts catppuccin;
};
in
{
nixosConfigurations = {
laptop = nixos.laptop;
};
homeConfigurations = {
ivand = home.ivand;
};
modules = modules;
outputs = inputs@{ parts, nixpkgs, ide, nid, home-manager, hosts, catppuccin, ... }:
parts.lib.mkFlake { inherit inputs; } {
flake =
let
stateVersion = "24.05";
my-overlay = self: super: {
scripts = (super.buildEnv { name = "scripts"; paths = [ ./. ]; });
};
pkgs = import nixpkgs {
overlays = [ my-overlay ];
};
modules = import ./modules {
inherit nixpkgs pkgs ide my-overlay;
system = "x86_64-linux";
};
home = import ./home {
inherit stateVersion pkgs modules home-manager nid catppuccin;
system = "x86_64-linux";
};
nixos = import ./nixos {
inherit stateVersion nixpkgs modules hosts catppuccin;
system = "x86_64-linux";
};
in
{
nixosConfigurations = {
nixos = nixos.laptop;
};
homeConfigurations = {
ivand = home.ivand;
};
modules = modules;
};
systems = [
"x86_64-linux"
];
perSystem = { config, ... }: { };
};
}