diff --git a/features/i3.nix b/features/i3.nix new file mode 100644 index 0000000..0fcc62d --- /dev/null +++ b/features/i3.nix @@ -0,0 +1,36 @@ +{pkgs, config, ... }: +{ + xsession.windowManager.i3.config = { + colors = with config.colorScheme.colors; { + background = "#${base00}"; + focused = { + background = "#${base09}"; + border = "#${base09}"; + childBorder = "#${base09}"; + indicator = "#${base09}"; + text = "#${base08}"; + } + focusedInactive = { + background = "#285577"; + border = "#4c7899"; + childBorder = "#285577"; + indicator = "#2e9ef4"; + text = "#ffffff"; + } + unfocused = { + background = "#285577"; + border = "#4c7899"; + childBorder = "#285577"; + indicator = "#2e9ef4"; + text = "#ffffff"; + } + urgent = { + background = "#285577"; + border = "#4c7899"; + childBorder = "#285577"; + indicator = "#2e9ef4"; + text = "#ffffff"; + } + } + } +} diff --git a/flake.lock b/flake.lock index 6aa3da3..c27017a 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "base16-schemes": { + "flake": false, + "locked": { + "lastModified": 1696158499, + "narHash": "sha256-5yIHgDTPjoX/3oDEfLSQ0eJZdFL1SaCfb9d6M0RmOTM=", + "owner": "tinted-theming", + "repo": "base16-schemes", + "rev": "a9112eaae86d9dd8ee6bb9445b664fba2f94037a", + "type": "github" + }, + "original": { + "owner": "tinted-theming", + "repo": "base16-schemes", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -21,6 +37,25 @@ "type": "github" } }, + "nix-colors": { + "inputs": { + "base16-schemes": "base16-schemes", + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1707825078, + "narHash": "sha256-hTfge2J2W+42SZ7VHXkf4kjU+qzFqPeC9k66jAUBMHk=", + "owner": "Misterio77", + "repo": "nix-colors", + "rev": "b01f024090d2c4fc3152cd0cf12027a7b8453ba1", + "type": "github" + }, + "original": { + "owner": "Misterio77", + "repo": "nix-colors", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1721379653, @@ -37,9 +72,25 @@ "type": "github" } }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1697935651, + "narHash": "sha256-qOfWjQ2JQSQL15KLh6D7xQhx0qgZlYZTYlcEiRuAMMw=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "e1e11fdbb01113d85c7f41cada9d2847660e3902", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, "root": { "inputs": { "home-manager": "home-manager", + "nix-colors": "nix-colors", "nixpkgs": "nixpkgs" } } diff --git a/flake.nix b/flake.nix index 560b2f3..a9a50a0 100644 --- a/flake.nix +++ b/flake.nix @@ -5,9 +5,10 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; home-manager.url = "github:nix-community/home-manager/master"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; + nix-colors.url = "github:Misterio77/nix-colors"; }; - outputs = { self, nixpkgs, home-manager, ... }: + outputs = { self, nixpkgs, home-manager, ... }@inputs: let lib = nixpkgs.lib; system = "x86_64-linux"; @@ -22,6 +23,7 @@ homeConfigurations = { lorenz = home-manager.lib.homeManagerConfiguration { inherit pkgs; + extraSpecialArgs = { inherit inputs; }; modules = [ ./home.nix ]; }; }; diff --git a/home.nix b/home.nix index 5ccfa01..17df4a9 100644 --- a/home.nix +++ b/home.nix @@ -1,6 +1,13 @@ -{ config, pkgs, ... }: - +{ config, pkgs, inputs, ... }: { + + imports = [ + inputs.nix-colors.homeManagerModules.default + ./features/i3.nix + ]; + + colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium; + # Home Manager needs a bit of information about you and the paths it should # manage. home.username = "lorenz";