aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-04-10 10:58:33 +0200
committerSoispha <soispha@vhack.eu>2023-05-09 19:30:01 +0200
commit04e269a1e25ff8b75099f2113edee728d04429a8 (patch)
treef2fed6efd2938fb86b98681655395f1e42cbd790
parentFeat(flake): Activate content-addressed derivations (diff)
downloadnixos-config-04e269a1e25ff8b75099f2113edee728d04429a8.zip
Fix(treewide): Remove the reference to inputs
-rwxr-xr-xbootstrap/setup/setup.sh2
-rw-r--r--flake.nix41
-rw-r--r--flake/nixosConfigurations/default.nix52
3 files changed, 54 insertions, 41 deletions
diff --git a/bootstrap/setup/setup.sh b/bootstrap/setup/setup.sh
index 93e7aca1..bd32a136 100755
--- a/bootstrap/setup/setup.sh
+++ b/bootstrap/setup/setup.sh
@@ -6,7 +6,7 @@ msg "Select a host-config:"
hosts=$(mktmp);
host="";
-awk -F "." '/inputs.nixpkgs.lib.nixosSystem/{print $1}' "$(tmp 'curl https://codeberg.org/ene/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null')" | awk '{print $1}' > $hosts;
+awk -F "." '/pkgs.lib.nixosSystem/{print $1}' "$(tmp 'curl https://codeberg.org/ene/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null')" | awk '{print $1}' > $hosts;
while ! grep "$host" "$hosts" > /dev/null || [ "$(printf "%s" "$host" | wc -c)" -eq 0 ]; do
i=1;
diff --git a/flake.nix b/flake.nix
index 35fc36b2..4d35926f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -84,14 +84,14 @@
yambar_cpu,
grades,
...
- } @ inputs: let
+ }: let
sysLib = import ./lib {inherit pkgs shell-library;};
system = "x86_64-linux";
- pkgs = import inputs.nixpkgs {
+ pkgs = import nixpkgs {
config = {
contentAddressedByDefault = true;
config.allowUnfreePredicate = pkg:
- builtins.elem (inputs.nixpkgs.lib.getName pkg) [
+ builtins.elem (nixpkgs.lib.getName pkg) [
"steam"
"steam-original"
];
@@ -101,32 +101,47 @@
in {
nixosConfigurations = import ./flake/nixosConfigurations {
inherit
- inputs
system
pkgs
sysLib
+ home-manager
+ agenix
+ impermanence
river_init_lesser
yambar_memory
yambar_cpu
grades
+ neovim_config
+ strip_js_comments
+ shell-library
+ user_js
+ snap-sync
;
};
packages."${system}" = {
install = import ./bootstrap/install {
- inherit pkgs;
- inherit (inputs) shell-library;
+ inherit
+ pkgs
+ shell-library
+ ;
};
activate = import ./bootstrap/activate {
- inherit pkgs;
- inherit (inputs) shell-library;
+ inherit
+ pkgs
+ shell-library
+ ;
};
setup = import ./bootstrap/setup {
- inherit pkgs;
- inherit (inputs) shell-library;
+ inherit
+ pkgs
+ shell-library
+ ;
};
config_setup = import ./bootstrap/config_setup {
- inherit pkgs;
- inherit (inputs) shell-library;
+ inherit
+ pkgs
+ shell-library
+ ;
};
};
@@ -151,7 +166,7 @@
};
devShells."${system}" = {
default = pkgs.mkShell {
- packages = with pkgs; [nil alejandra statix inputs.ragenix.packages."${system}".default];
+ packages = with pkgs; [nil alejandra statix ragenix.packages."${system}".default];
};
};
};
diff --git a/flake/nixosConfigurations/default.nix b/flake/nixosConfigurations/default.nix
index 1240d5e4..d8663f85 100644
--- a/flake/nixosConfigurations/default.nix
+++ b/flake/nixosConfigurations/default.nix
@@ -1,9 +1,22 @@
# vim: ts=2
{
- inputs,
system,
pkgs,
sysLib,
+ yambar_cpu,
+ yambar_memory,
+ strip_js_comments,
+ river_init_lesser,
+ grades,
+ shell-library,
+ # external deps
+ user_js,
+ neovim_config,
+ snap-sync,
+ # modules
+ impermanence,
+ home-manager,
+ agenix,
...
}: let
homeManagerConfig = {
@@ -13,18 +26,13 @@
users.soispha = import ../../home-manager;
extraSpecialArgs = {
inherit
- inputs
pkgs
sysLib
# extra information
-
- system
- ;
- inherit
- (inputs)
+ system
# bins
-
+
yambar_cpu
yambar_memory
strip_js_comments
@@ -32,12 +40,12 @@
grades
shell-library
# external deps
-
+
user_js
neovim_config
snap-sync
# modules
-
+
impermanence
;
};
@@ -45,21 +53,18 @@
};
ageConfig = import ../../secrets;
defaultModules = [
- inputs.agenix.nixosModules.default
+ agenix.nixosModules.default
ageConfig
- # inputs.home-manager.nixosModules.home-manager
- (import "${inputs.home-manager}/nixos")
+ home-manager.nixosModules.home-manager
+ #(import "${inputs.home-manager}/nixos")
# inputs.impermanence.nixosModules.home-manager.impermanence
homeManagerConfig
];
in {
- tiamat = inputs.nixpkgs.lib.nixosSystem {
+ tiamat = pkgs.lib.nixosSystem {
inherit system;
- specialArgs =
- pkgs.lib.recursiveUpdate inputs
- sysLib;
modules =
[
../../hosts/tiamat/configuration.nix
@@ -67,30 +72,23 @@ in {
++ defaultModules;
};
- mammun = inputs.nixpkgs.lib.nixosSystem {
+ mammun = pkgs.lib.nixosSystem {
inherit system;
- specialArgs =
- pkgs.lib.recursiveUpdate inputs
- sysLib;
modules =
[
../../hosts/mammun/configuration.nix
]
++ defaultModules;
};
- lahmu = inputs.nixpkgs.lib.nixosSystem {
+ lahmu = pkgs.lib.nixosSystem {
inherit system;
- specialArgs =
- pkgs.lib.recursiveUpdate inputs
- sysLib;
modules =
[
../../hosts/lahmu/configuration.nix
]
++ defaultModules;
};
- spawn = inputs.nixpkgs.lib.nixosSystem {
- specialArgs = inputs;
+ spawn = pkgs.lib.nixosSystem {
modules = [../../hosts/spawn/configuration.nix];
};
}