mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
config: use flake-provided package
We've also removed the overlay because of troubles with building certain package that is required to be in a specific version. Overlays are very powerful but very unwieldy for a stable environment at times.
This commit is contained in:
parent
ffe8efd8d0
commit
d14628b36e
@ -63,7 +63,6 @@
|
|||||||
|
|
||||||
# Guix in NixOS?!
|
# Guix in NixOS?!
|
||||||
guix-overlay.url = "github:foo-dogsquared/nix-overlay-guix";
|
guix-overlay.url = "github:foo-dogsquared/nix-overlay-guix";
|
||||||
guix-overlay.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
|
|
||||||
# The more recommended Rust overlay so I'm going with it.
|
# The more recommended Rust overlay so I'm going with it.
|
||||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||||
@ -126,7 +125,7 @@
|
|||||||
# The system of the NixOS system.
|
# The system of the NixOS system.
|
||||||
inherit system;
|
inherit system;
|
||||||
lib = lib';
|
lib = lib';
|
||||||
specialArgs = extraArgs;
|
specialArgs = extraArgs // { inherit system; };
|
||||||
modules =
|
modules =
|
||||||
# Append with our custom NixOS modules from the modules folder.
|
# Append with our custom NixOS modules from the modules folder.
|
||||||
(lib'.modulesToList (lib'.filesToAttr ./modules/nixos))
|
(lib'.modulesToList (lib'.filesToAttr ./modules/nixos))
|
||||||
@ -209,7 +208,7 @@
|
|||||||
# Extend nixpkgs with our overlays except for the NixOS-focused modules
|
# Extend nixpkgs with our overlays except for the NixOS-focused modules
|
||||||
# here.
|
# here.
|
||||||
nixpkgs.overlays = overlays
|
nixpkgs.overlays = overlays
|
||||||
++ [ inputs.nix-alien.overlay inputs.guix-overlay.overlays.default ];
|
++ [ inputs.nix-alien.overlay ];
|
||||||
|
|
||||||
# Please clean your temporary crap.
|
# Please clean your temporary crap.
|
||||||
boot.cleanTmpDir = lib.mkDefault true;
|
boot.cleanTmpDir = lib.mkDefault true;
|
||||||
@ -233,6 +232,8 @@
|
|||||||
};
|
};
|
||||||
services.sshd.enable = lib.mkDefault true;
|
services.sshd.enable = lib.mkDefault true;
|
||||||
services.openssh.enable = lib.mkDefault true;
|
services.openssh.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
services.guix.package = inputs.guix-overlay.packages.${system}.guix;
|
||||||
};
|
};
|
||||||
|
|
||||||
mkUser = { system ? defaultSystem, extraModules ? [ ] }:
|
mkUser = { system ? defaultSystem, extraModules ? [ ] }:
|
||||||
|
Loading…
Reference in New Issue
Block a user