test
This commit is contained in:
parent
f1e1809e8e
commit
127efbc457
2 changed files with 27 additions and 9 deletions
|
@ -175,7 +175,7 @@
|
|||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
|
||||
# Configure BASH exports
|
||||
|
|
|
@ -1,15 +1,33 @@
|
|||
{
|
||||
description = "Bootstrap Nix Flake for my laptop";
|
||||
description = "Laptop System Config";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpgs/nixos-23.05";
|
||||
nixpkgs.url = "nixpkgs/nixos-23.05";
|
||||
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: {
|
||||
# replace 'joes-desktop' with your hostname here.
|
||||
nixosConfigurations.nixos-p1 = nixpkgs.lib.nixosSystem {
|
||||
outputs = { nixpkgs, home-manager, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
# modules = [ ./configuration.nix ];
|
||||
hostname = "nixos-p1";
|
||||
pkgs = import nixpkgs {
|
||||
# Tells Flake what OS version we are using
|
||||
inherit system;
|
||||
config = { allowUnfree = true; };
|
||||
};
|
||||
|
||||
lib = nixpkgs.lib;
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
nixos-p1 = lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
modules = [
|
||||
./configuration.nix
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue