This commit is contained in:
iFargle 2023-06-30 19:17:13 +09:00
parent f1e1809e8e
commit 127efbc457
2 changed files with 27 additions and 9 deletions

View file

@ -175,7 +175,7 @@
nix.gc = { nix.gc = {
automatic = true; automatic = true;
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 30d"; options = "--delete-older-than 7d";
}; };
# Configure BASH exports # Configure BASH exports

View file

@ -1,15 +1,33 @@
{ {
description = "Bootstrap Nix Flake for my laptop"; description = "Laptop System Config";
inputs = { 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 }: { outputs = { nixpkgs, home-manager, ... }:
# replace 'joes-desktop' with your hostname here. let
nixosConfigurations.nixos-p1 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; 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
];
};
}; };
}; };
} }