Importing custom own flake

This commit is contained in:
2026-04-10 17:26:52 +02:00
parent 2efe86cc7c
commit 11cd51ffd1
5 changed files with 56 additions and 10 deletions

45
flake.lock generated
View File

@@ -20,18 +20,36 @@
"type": "github" "type": "github"
} }
}, },
"htt-src": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1775834362,
"narHash": "sha256-JwVeElcwMiEFSfqjqS6RFDr1y8ZqKLUQ9Qq+I3yNnsI=",
"ref": "refs/heads/master",
"rev": "a91cd16bbe1095777f0a6999d5f2cc024cc02818",
"revCount": 54,
"type": "git",
"url": "ssh://gitea@typofelho.ddns.net/TypoMustakes/hyprland-toggle-tiling.git"
},
"original": {
"type": "git",
"url": "ssh://gitea@typofelho.ddns.net/TypoMustakes/hyprland-toggle-tiling.git"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1775525138, "lastModified": 1775710090,
"narHash": "sha256-BQb70+B378ECLO8iQT3P/b1hCC5/CJVHZdeulY8futc=", "narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d96b37bbeb9840f1c0ebfe90585ef5067b69bbb3", "rev": "4c1018dae018162ec878d42fec712642d214fdfa",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-25.11", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@@ -52,10 +70,27 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1775525138,
"narHash": "sha256-BQb70+B378ECLO8iQT3P/b1hCC5/CJVHZdeulY8futc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d96b37bbeb9840f1c0ebfe90585ef5067b69bbb3",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "htt-src": "htt-src",
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable" "nixpkgs-unstable": "nixpkgs-unstable"
} }
} }

View File

@@ -5,17 +5,21 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
htt-src.url = "git+ssh://gitea@typofelho.ddns.net/TypoMustakes/hyprland-toggle-tiling.git";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }: { outputs = { self, htt-src, nixpkgs, nixpkgs-unstable, home-manager, ... }: {
nixosConfigurations.Prometheus = nixpkgs.lib.nixosSystem { nixosConfigurations.Prometheus = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { specialArgs = {
htt = htt-src.packages.x86_64-linux.default;
pkgs-unstable = import nixpkgs-unstable { pkgs-unstable = import nixpkgs-unstable {
system = "x86_64-linux"; system = "x86_64-linux";
config.allowUnfree = true; config.allowUnfree = true;
@@ -32,6 +36,8 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { specialArgs = {
htt = htt-src.packages.x86_64-linux.default;
pkgs-unstable = import nixpkgs-unstable { pkgs-unstable = import nixpkgs-unstable {
system = "x86_64-linux"; system = "x86_64-linux";
config.allowUnfree = true; config.allowUnfree = true;

View File

@@ -1,4 +1,4 @@
{ lib, config, pkgs, ... }: { lib, config, pkgs, htt, ... }:
{ {
imports = [ imports = [
@@ -9,6 +9,7 @@
homeDirectory = "/home/typo"; homeDirectory = "/home/typo";
stateVersion = "25.11"; stateVersion = "25.11";
packages = with pkgs; [ packages = with pkgs; [
htt
killall killall
lutris lutris
bottles bottles

View File

@@ -105,11 +105,11 @@ update() {
case "$SELECTED" in case "$SELECTED" in
$OPTION_DARK) $OPTION_DARK)
dconf write /org/gnome/desktop/interface/color-scheme \'prefer-dark\' dconf write /org/gnome/desktop/interface/color-scheme \'prefer-dark\'
swww img /home/typo/.config/backgrounds/gruvbox/wp11058332.png -t grow --transition-duration 1 --transition-fps 60 --transition-pos 0.$((1 + $RANDOM % 9)),0.$((1 + $RANDOM % 9)) swww img /home/typo/.config/backgrounds/gruvbox/nix_dark.png -t grow --transition-duration 1 --transition-fps 60 --transition-pos 0.$((1 + $RANDOM % 9)),0.$((1 + $RANDOM % 9))
;; ;;
$OPTION_LIGHT) $OPTION_LIGHT)
dconf write /org/gnome/desktop/interface/color-scheme \'prefer-light\' dconf write /org/gnome/desktop/interface/color-scheme \'prefer-light\'
swww img /home/typo/.config/backgrounds/gruvbox/chinese-hills.jpg -t grow --transition-duration 1 --transition-fps 60 --transition-pos 0.$((1 + $RANDOM % 9)),0.$((1 + $RANDOM % 9)) swww img /home/typo/.config/backgrounds/gruvbox/nix_light.png -t grow --transition-duration 1 --transition-fps 60 --transition-pos 0.$((1 + $RANDOM % 9)),0.$((1 + $RANDOM % 9))
;; ;;
*) *)

View File

@@ -1,4 +1,4 @@
{ pkgs, pkgs-unstable, lib, ... }: { pkgs, pkgs-unstable, htt, lib, ... }:
{ {
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@@ -66,6 +66,10 @@
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = {
inherit htt;
};
users.typo = import ../home.nix; users.typo = import ../home.nix;
}; };