kinda working
This commit is contained in:
parent
c8fe240fb8
commit
196683aceb
23
flake.lock
23
flake.lock
@ -492,6 +492,26 @@
|
|||||||
"type": "github"
|
"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": {
|
"pre-commit-hooks": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_3",
|
||||||
@ -528,7 +548,8 @@
|
|||||||
"hosts": "hosts",
|
"hosts": "hosts",
|
||||||
"ide": "ide",
|
"ide": "ide",
|
||||||
"nid": "nid",
|
"nid": "nid",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"parts": "parts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
|
24
flake.nix
24
flake.nix
@ -5,6 +5,10 @@
|
|||||||
url = "github:nix-community/home-manager/release-24.05";
|
url = "github:nix-community/home-manager/release-24.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
parts = {
|
||||||
|
url = "github:hercules-ci/flake-parts";
|
||||||
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||||
|
};
|
||||||
hosts = {
|
hosts = {
|
||||||
url = "github:StevenBlack/hosts";
|
url = "github:StevenBlack/hosts";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -19,34 +23,42 @@
|
|||||||
};
|
};
|
||||||
catppuccin.url = "github:catppuccin/nix";
|
catppuccin.url = "github:catppuccin/nix";
|
||||||
};
|
};
|
||||||
outputs = { nixpkgs, home-manager, hosts, ide, nid, catppuccin, ... }:
|
outputs = inputs@{ parts, nixpkgs, ide, nid, home-manager, hosts, catppuccin, ... }:
|
||||||
|
parts.lib.mkFlake { inherit inputs; } {
|
||||||
|
flake =
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
my-overlay = self: super: {
|
my-overlay = self: super: {
|
||||||
scripts = (super.buildEnv { name = "scripts"; paths = [ ./. ]; });
|
scripts = (super.buildEnv { name = "scripts"; paths = [ ./. ]; });
|
||||||
};
|
};
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
|
||||||
overlays = [ my-overlay ];
|
overlays = [ my-overlay ];
|
||||||
};
|
};
|
||||||
modules = import ./modules {
|
modules = import ./modules {
|
||||||
inherit system nixpkgs pkgs ide my-overlay;
|
inherit nixpkgs pkgs ide my-overlay;
|
||||||
|
system = "x86_64-linux";
|
||||||
};
|
};
|
||||||
home = import ./home {
|
home = import ./home {
|
||||||
inherit stateVersion pkgs modules home-manager nid catppuccin;
|
inherit stateVersion pkgs modules home-manager nid catppuccin;
|
||||||
|
system = "x86_64-linux";
|
||||||
};
|
};
|
||||||
nixos = import ./nixos {
|
nixos = import ./nixos {
|
||||||
inherit stateVersion system nixpkgs modules hosts catppuccin;
|
inherit stateVersion nixpkgs modules hosts catppuccin;
|
||||||
|
system = "x86_64-linux";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
laptop = nixos.laptop;
|
nixos = nixos.laptop;
|
||||||
};
|
};
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
ivand = home.ivand;
|
ivand = home.ivand;
|
||||||
};
|
};
|
||||||
modules = modules;
|
modules = modules;
|
||||||
};
|
};
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
];
|
||||||
|
perSystem = { config, ... }: { };
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user