This is definitely a hack
This commit is contained in:
14
flake.nix
14
flake.nix
@@ -16,12 +16,15 @@
|
|||||||
home-manager,
|
home-manager,
|
||||||
i3utils,
|
i3utils,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
}: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs =
|
||||||
inherit system;
|
(import nixpkgs {
|
||||||
};
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
})
|
||||||
|
// {i3utils = i3utils.packages.${system}.default;};
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
||||||
@@ -31,6 +34,7 @@
|
|||||||
}:
|
}:
|
||||||
lib.nixosSystem {
|
lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${hostname}/configuration.nix
|
./hosts/${hostname}/configuration.nix
|
||||||
@@ -47,8 +51,6 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
specialArgs = {inherit inputs;};
|
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
boot.loader.systemd-boot.enable = lib.mkDefault true;
|
boot.loader.systemd-boot.enable = lib.mkDefault true;
|
||||||
boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
|
boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# nix flakes compatibility
|
# nix flakes compatibility
|
||||||
nix = {
|
nix = {
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
flameshot
|
flameshot
|
||||||
i3lock
|
i3lock
|
||||||
inputs.i3utils
|
i3utils
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user