diff --git a/configuration.nix b/configuration.nix index 05695ef..70b94ba 100644 --- a/configuration.nix +++ b/configuration.nix @@ -269,7 +269,7 @@ in { programs.gamemode.enable = true; - nixpkgs.config.allowUnfree = true; + # nixpkgs.config.allowUnfree = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. diff --git a/flake.lock b/flake.lock index e3d64cb..34485fa 100644 --- a/flake.lock +++ b/flake.lock @@ -314,11 +314,32 @@ "type": "github" } }, + "qotd": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1753819801, + "narHash": "sha256-ZkMmCOEU64TjN/UlD1GuqQuym/YLQuN196CmlMHAO+w=", + "ref": "refs/heads/master", + "rev": "ad90671e37f034807b19a68a1a3b9824609bbafa", + "revCount": 11, + "type": "git", + "url": "file:///home/fredrikr/Programming/uiua/qotd" + }, + "original": { + "type": "git", + "url": "file:///home/fredrikr/Programming/uiua/qotd" + } + }, "root": { "inputs": { "home-manager": "home-manager", "nixpkgs": "nixpkgs", "nixvim": "nixvim", + "qotd": "qotd", "uiua": "uiua", "vi-xournalpp": "vi-xournalpp" } diff --git a/flake.nix b/flake.nix index 0526849..5c54c39 100644 --- a/flake.nix +++ b/flake.nix @@ -31,14 +31,20 @@ url = "github:uiua-lang/uiua"; inputs.nixpkgs.follows = "nixpkgs"; }; + + qotd = { + url = "git+file:///home/fredrikr/Programming/uiua/qotd"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = { self, nixpkgs, home-manager, nixvim, uiua, ... } @ inputs: + outputs = { self, nixpkgs, home-manager, nixvim, uiua, qotd, ... } @ inputs: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; config.allowUnfree = true; + overlays = [ qotd.overlays.default ]; }; lib = nixpkgs.lib; in @@ -53,13 +59,19 @@ #}; fredrikr = lib.nixosSystem { - inherit system; + inherit system pkgs; specialArgs = {inherit inputs;}; modules = [ ./configuration.nix home-manager.nixosModules.home-manager + qotd.nixosModules.default + { + services.qotd.enable = true; + services.qotd.quotes = [ "hei" "hade" ]; + } + ({ ... }: { home-manager = { useGlobalPkgs = true;