From 471c85d26965d60b7c9e15fcb36089cecc5be41e Mon Sep 17 00:00:00 2001 From: Emmet Date: Sun, 7 May 2023 17:47:40 -0500 Subject: [PATCH] Trying flakes again.. --- flake.lock | 48 ++++++++++++++++++++++++++++++++++++++++ flake.nix | 32 +++++++++++++++++++++++++++ system/configuration.nix | 1 + 3 files changed, 81 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0ed670f --- /dev/null +++ b/flake.lock @@ -0,0 +1,48 @@ +{ + "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1683496796, + "narHash": "sha256-MgC6q2tEFM0uPB/kt+MYQSrnuLnTTvIFziZSDJCloQ4=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "78ceec68f29ed56d6118617e9f0f588bf164067f", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "master", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1683408522, + "narHash": "sha256-9kcPh6Uxo17a3kK3XCHhcWiV1Yu1kYj22RHiymUhMkU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "897876e4c484f1e8f92009fd11b7d988a121a4e7", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "home-manager": "home-manager", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f3ff79f --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +{ + description = "No, I don't understand how this works, so please don't ask"; + + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + home-manager.url = "github:nix-community/home-manager/master"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = { nixpkgs, home-manager, ... }: + let + system = "x86_64-linux"; + + pkgs = import nixpkgs { + inherit system; + config = { allowUnfree = true; }; + }; + + lib = nixpkgs.lib; + + in { + nixosConfigurations = { + snowfire = lib.nixosSystem { + inherit system; + + modules = [ + ./system/configuration.nix + ]; + }; + }; + }; +} diff --git a/system/configuration.nix b/system/configuration.nix index aae0747..0ecb9a3 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -135,6 +135,7 @@ ]; environment.shells = with pkgs; [ zsh ]; + programs.zsh.enable = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions.