Steam deck perhaps

This commit is contained in:
2023-06-24 16:27:46 +01:00
parent 5eb965823e
commit 8864fc294d
120 changed files with 208 additions and 339 deletions

37
flake.lock generated
View File

@@ -77,6 +77,21 @@
"type": "github"
}
},
"flake-utils_3": {
"locked": {
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"golink": {
"inputs": {
"flake-utils": "flake-utils",
@@ -204,6 +219,27 @@
"url": "https://git.sr.ht/~dpatterbee/i3utils"
}
},
"nixgl": {
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1685908677,
"narHash": "sha256-E4zUPEUFyVWjVm45zICaHRpfGepfkE9Z2OECV9HXfA4=",
"owner": "guibou",
"repo": "nixGL",
"rev": "489d6b095ab9d289fe11af0219a9ff00fe87c7c5",
"type": "github"
},
"original": {
"owner": "guibou",
"repo": "nixGL",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1683014792,
@@ -242,6 +278,7 @@
"home-manager": "home-manager_2",
"hyprland": "hyprland",
"i3utils": "i3utils",
"nixgl": "nixgl",
"nixpkgs": "nixpkgs_2"
}
},

View File

@@ -17,6 +17,9 @@
golink.url = "github:tailscale/golink";
golink.inputs.nixpkgs.follows = "nixpkgs";
nixgl.url = "github:/guibou/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
@@ -26,6 +29,7 @@
i3utils,
hyprland,
golink,
nixgl,
...
}: let
system = "x86_64-linux";
@@ -37,6 +41,7 @@
overlays = [
golink.overlay
hyprland.overlays.default
nixgl.overlay
];
})
// {
@@ -56,6 +61,17 @@
lib = nixpkgs.lib;
deckSystem = {hostname}:
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./users/deck
];
extraSpecialArgs = {
inherit hostname;
};
};
hostSystem = {
hostname,
headless,
@@ -117,5 +133,10 @@
headless = true;
};
};
homeConfigurations = {
"deck" = deckSystem {
hostname = "deck";
};
};
};
}

View File

@@ -0,0 +1,9 @@
{config, ...}: {
imports = [
# ./i3
# ./i3status-rust
# ./polybar
./hyprland
./waybar
];
}

View File

@@ -1,7 +1,5 @@
{
imports = [
./alacritty
./helix
./kitty
./nvim
];

View File

@@ -1,4 +1,27 @@
{pkgs, ...}: {
{
pkgs,
lib,
hostname,
...
}: let
wrap_gl = program: let
name = lib.strings.getName program.name;
in
pkgs.symlinkJoin {
name = name;
paths = [
(pkgs.writeShellScriptBin name ''
${pkgs.nixgl.nixGLIntel}/bin/nixGLIntel ${program}/bin/${name}
'')
program
];
};
package =
if hostname == "deck"
then (wrap_gl pkgs.kitty)
else pkgs.kitty;
in {
home.file.".config/kitty/catppuccin.conf" = {
source = ./catppuccin.conf;
};
@@ -7,6 +30,7 @@
font = {
name = "Iosevka Nerd Font";
};
package = package;
settings = {
"include" = "catppuccin.conf";
"scrollback_lines" = 50000;

Some files were not shown because too many files have changed in this diff Show More