desktop-2024-08-30-12-09-05

This commit is contained in:
Alexander Szczepanski
2024-08-30 12:09:05 +02:00
parent dbd9f9aaab
commit adf3ae9214
2 changed files with 80 additions and 0 deletions

44
flake.lock generated Normal file
View File

@ -0,0 +1,44 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1724855419,
"narHash": "sha256-WXHSyOF4nBX0cvHN3DfmEMcLOVdKH6tnMk9FQ8wTNRc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ae2fc9e0e42caaf3f068c1bfdc11c71734125e06",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1724819573,
"narHash": "sha256-GnR7/ibgIH1vhoy8cYdmXE6iyZqKqFxQSVkFgosBh6w=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "71e91c409d1e654808b2621f28a327acfdad8dc2",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}
}
},
"root": "root",
"version": 7
}

36
flake.nix Normal file
View File

@ -0,0 +1,36 @@
{
description = "Your new nix config";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# # Home manager
# home-manager.url = "github:nix-community/home-manager/release-24.05";
# home-manager.inputs.nixpkgs.follows = "nixpkgs-unstable";
};
outputs =
{ self
, nixpkgs
, nixpkgs-unstable
# , home-manager
, ...
} @ inputs:
let
inherit (self) outputs;
system = "x86_64-linux";
in
{
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
# > Our main nixos configuration file <
modules = [ ./machine/desktop.nix ];
};
};
};
}