From 5d336025460df93188c89f45d9907f2bceadecdc Mon Sep 17 00:00:00 2001 From: janabhumi Date: Thu, 1 Sep 2022 11:17:54 +0300 Subject: [PATCH] system: add dedsec grub theme --- flake.lock | 22 ++++++++++++++++++++++ flake.nix | 7 ++++++- outputs/home.nix | 2 +- outputs/system.nix | 4 +++- system/machine/home/default.nix | 6 ++++++ 5 files changed, 38 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 5792b34..d78b144 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,26 @@ { "nodes": { + "dedsec-grub-theme": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1662065030, + "narHash": "sha256-EhgbM6/qM807Ht0ZnlOY0H8WS4CqbpuGREo02e2dys8=", + "owner": "pleshevskiy", + "repo": "dedsec-grub-theme", + "rev": "bdb30e5c2a984f17731e8bb174826ad062ec9d2c", + "type": "gitlab" + }, + "original": { + "owner": "pleshevskiy", + "ref": "nix-flake", + "repo": "dedsec-grub-theme", + "type": "gitlab" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -40,6 +61,7 @@ }, "root": { "inputs": { + "dedsec-grub-theme": "dedsec-grub-theme", "home-manager": "home-manager", "nixpkgs": "nixpkgs" } diff --git a/flake.nix b/flake.nix index d762423..389a94f 100644 --- a/flake.nix +++ b/flake.nix @@ -6,6 +6,11 @@ url = github:nix-community/home-manager/master; inputs.nixpkgs.follows = "nixpkgs"; }; + + dedsec-grub-theme = { + url = gitlab:pleshevskiy/dedsec-grub-theme/nix-flake; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = inputs @ { self, nixpkgs, ... }: @@ -18,7 +23,7 @@ }; nixosConfigurations = import ./outputs/system.nix { - inherit nixpkgs system; + inherit inputs system; }; devShells.${system} = diff --git a/outputs/home.nix b/outputs/home.nix index 6dea9b5..9856127 100644 --- a/outputs/home.nix +++ b/outputs/home.nix @@ -1,4 +1,4 @@ -{ inputs, system }: +{ inputs, system, ... }: with inputs; diff --git a/outputs/system.nix b/outputs/system.nix index 031d4ab..b50702f 100644 --- a/outputs/system.nix +++ b/outputs/system.nix @@ -1,9 +1,11 @@ -{ nixpkgs, system }: +{ inputs, system, ... }: +with inputs; { systemHome = nixpkgs.lib.nixosSystem { inherit system; modules = [ + dedsec-grub-theme.nixosModule ../system/configuration.nix ../system/machine/home ]; diff --git a/system/machine/home/default.nix b/system/machine/home/default.nix index 519b264..620fd88 100644 --- a/system/machine/home/default.nix +++ b/system/machine/home/default.nix @@ -15,6 +15,12 @@ in enable = true; version = 2; device = "/dev/sda"; + + dedsec-theme = { + enable = true; + style = "sitedown"; + resolution = "1440p"; + }; }; kernelPackages = pkgs.linuxPackages_latest; -- 2.46.1