diff --git a/configuration.nix b/configuration.nix index 862a707..693ffc5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -25,6 +25,13 @@ ./modules/opengl.nix ]; + nix = { + package = pkgs.nixFlakes; + extraOptions = '' + experimental-features = nix-command flakes + ''; + }; + # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..ea9a5c5 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1700794826, + "narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..21fe486 --- /dev/null +++ b/flake.nix @@ -0,0 +1,20 @@ +{ + description = "grimmauld-nixos"; + + inputs = { + nixpkgs = { + url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + }; + + outputs = { self, nixpkgs }: { + nixosConfigurations = { + grimmauld-nixos = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./configuration.nix + ]; + }; + }; + }; +} diff --git a/modules/printing.nix b/modules/printing.nix index b463253..57abdad 100644 --- a/modules/printing.nix +++ b/modules/printing.nix @@ -2,7 +2,7 @@ with import {}; { imports = [ # Include the results of the hardware scan. - +# ]; # Enable CUPS to print documents.