From 84db8418fe26e0258fedb1e162d15e2f05bfae52 Mon Sep 17 00:00:00 2001 From: Jessica Canady Date: Sun, 25 Jun 2023 11:00:03 -0400 Subject: [PATCH] Stylix attempt. --- flake.lock | 114 ++++++++++++++++++++++++++++++++++++++++++- flake.nix | 3 +- users/phoenix/hm.nix | 11 ++++- 3 files changed, 125 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 5e56d65..c292635 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,26 @@ { "nodes": { + "base16": { + "inputs": { + "nixpkgs": [ + "stylix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1658847131, + "narHash": "sha256-X6Mml7cT0YR3WCD5fkUhpRVV5ZPcwdcDsND8r8xMqTE=", + "owner": "SenchoPens", + "repo": "base16.nix", + "rev": "6b404cda2e04ca3cf5ca7b877af9c469e1386acb", + "type": "github" + }, + "original": { + "owner": "SenchoPens", + "repo": "base16.nix", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -16,6 +37,22 @@ "type": "github" } }, + "flake-compat_2": { + "flake": false, + "locked": { + "lastModified": 1673956053, + "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": "nixpkgs" @@ -35,6 +72,28 @@ "type": "github" } }, + "home-manager_2": { + "inputs": { + "nixpkgs": [ + "stylix", + "nixpkgs" + ], + "utils": "utils" + }, + "locked": { + "lastModified": 1680000368, + "narHash": "sha256-TlgC4IJ7aotynUdkGRtaAVxquaiddO38Ws89nB7VGY8=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "765e4007b6f9f111469a25d1df6540e8e0ca73a6", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, "lowdown-src": { "flake": false, "locked": { @@ -150,12 +209,65 @@ "type": "github" } }, + "nixpkgs_4": { + "locked": { + "lastModified": 1679793451, + "narHash": "sha256-JafTtgMDATE8dZOImBhWMA9RCn9AP8FVOpN+9K/tTlg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0cd51a933d91078775b300cf0f29aa3495231aa2", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "home-manager": "home-manager", "nix": "nix", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs_3" + "nixpkgs": "nixpkgs_3", + "stylix": "stylix" + } + }, + "stylix": { + "inputs": { + "base16": "base16", + "flake-compat": "flake-compat_2", + "home-manager": "home-manager_2", + "nixpkgs": "nixpkgs_4" + }, + "locked": { + "lastModified": 1687088160, + "narHash": "sha256-llpm6lUqvEZI4cQq62eO6lD8V3VOt2h6ZHiEY6LXVZM=", + "owner": "danth", + "repo": "stylix", + "rev": "383d7306df0450603816852baf9b992a431bb82e", + "type": "github" + }, + "original": { + "owner": "danth", + "repo": "stylix", + "type": "github" + } + }, + "utils": { + "locked": { + "lastModified": 1676283394, + "narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" } } }, diff --git a/flake.nix b/flake.nix index 5c26af3..8ca0be4 100644 --- a/flake.nix +++ b/flake.nix @@ -5,9 +5,10 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; nixos-hardware.url = "github:NixOS/nixos-hardware"; home-manager.url = "github:nix-community/home-manager/release-23.05"; + stylix.url = "github:danth/stylix"; }; - outputs = { self, nixpkgs, nix, nixos-hardware, home-manager }: { + outputs = { self, nixpkgs, nix, nixos-hardware, home-manager, stylix }: { nixosConfigurations = { hornt = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; diff --git a/users/phoenix/hm.nix b/users/phoenix/hm.nix index 5b071f3..bb8fabd 100644 --- a/users/phoenix/hm.nix +++ b/users/phoenix/hm.nix @@ -1,7 +1,15 @@ { config, pkgs, home-manager, ... }: { - /* The home.stateVersion option does not have a default and must be set */ + + # stylin' + stylix.image = pkgs.fetchurl { + url = "https://www.pixelstalk.net/wp-content/uploads/2016/05/Epic-Anime-Awesome-Wallpapers.jpg"; + sha256 = "enQo3wqhgf0FEPHj2coOCvo7DuZv+x5rL/WIo4qPI50="; + }; + stylix.polarity = "dark"; + + home.stateVersion = "23.05"; home.packages = with pkgs; [ @@ -15,6 +23,7 @@ xcp # cp ripgrep # grep kitty + plex-media-player ]; programs.git = {