restructure

This commit is contained in:
Kopatz
2023-11-05 11:09:24 +01:00
parent 64d8c7a494
commit 7c302c94a8
49 changed files with 37 additions and 10 deletions

View File

@@ -84,6 +84,22 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1699159446,
"narHash": "sha256-cL63IjsbPl2otS7R4kdXbVOJOXYMpGw5KGZoWgdCuCM=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "627bc9b88256379578885a7028c9e791c29fb581",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1677676435,
@@ -102,11 +118,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1698924604,
"narHash": "sha256-GCFbkl2tj8fEZBZCw3Tc0AkGo0v+YrQlohhEGJ/X4s0=",
"lastModified": 1699099776,
"narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fa804edfb7869c9fb230e174182a8a1a7e512c40",
"rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb",
"type": "github"
},
"original": {
@@ -117,11 +133,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1698942558,
"narHash": "sha256-/UmnB+mEd6Eg3mJBrAgqRcyZX//RSjHphcCO7Ig9Bpk=",
"lastModified": 1699110214,
"narHash": "sha256-L2TU4RgtiqF69W8Gacg2jEkEYJrW+Kp0Mp4plwQh5b8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "621f51253edffa1d6f08d5fce4f08614c852d17e",
"rev": "78f3a4ae19f0e99d5323dd2e3853916b8ee4afee",
"type": "github"
},
"original": {
@@ -135,6 +151,7 @@
"inputs": {
"agenix": "agenix",
"home-manager": "home-manager_2",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable"
}

View File

@@ -1,16 +1,17 @@
{
description = "A very basic flake";
description = "Kop's NixOS Flake";
inputs = {
# secrets management
agenix.url = "github:ryantm/agenix";
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nixpkgs-unstable, agenix, home-manager }@inputs:
outputs = { self, nixpkgs, nixos-hardware, nixpkgs-unstable, agenix, home-manager }@inputs:
let
system = "x86_64-linux";
overlay-unstable = final: prev: {
@@ -20,9 +21,10 @@
nixosConfigurations.server = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./users/anon.nix
./modules/static-ip-server.nix
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./configuration.nix
./systems/server/configuration.nix
./modules/hdd-spindown.nix
./modules/motd.nix
./modules/postgres.nix
@@ -54,5 +56,14 @@
];
specialArgs = { inherit inputs; };
};
nixosConfigurations."nix-laptop-no-gpu" = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs; };
modules = [
./laptop/configuration.nix
nixos-hardware.nixosModules.dell-xps-15-7590
agenix.nixosModules.default
];
};
};
}

View File

@@ -12,7 +12,6 @@ in{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./users/anon.nix
];
# Bootloader.