Compare commits
4 commits
bee0125a44
...
20f292e44c
Author | SHA1 | Date | |
---|---|---|---|
20f292e44c | |||
b35f3b15b9 | |||
5ad5eaef83 | |||
dcb9a76194 |
4 changed files with 82 additions and 18 deletions
36
flake.lock
36
flake.lock
|
@ -193,11 +193,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1724639687,
|
||||
"narHash": "sha256-L2h46/z8WExNvtCEdZ8YuMu5TwfAGsKXXgM7pyIShvs=",
|
||||
"lastModified": 1724769572,
|
||||
"narHash": "sha256-K+HQbC2/hnGngIB019mX6f4XUrf7dB1eBfiUHW4Vx48=",
|
||||
"owner": "nix-community",
|
||||
"repo": "disko",
|
||||
"rev": "b09eb605e376c9e95c87c0ef3fcb8008e11c8368",
|
||||
"rev": "b89a61129f3976d6440e2356ac5d3e30930f7012",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -217,11 +217,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1724637687,
|
||||
"narHash": "sha256-L/g0Lcmr8gcmR3zvWf7ZyOPHKW0R6DMUSuKlU8CZw/w=",
|
||||
"lastModified": 1724809610,
|
||||
"narHash": "sha256-eoW3oPT6jkS+kgcL5HgPigflWu/l57MhGlztR6ThFGc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "e3e088ef4b4b187a54445f5767047a8257893093",
|
||||
"rev": "6c5563a26bd1369d05f0d9da0d0348ca9f41a643",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -737,11 +737,11 @@
|
|||
},
|
||||
"nixpkgs-stable_2": {
|
||||
"locked": {
|
||||
"lastModified": 1724316499,
|
||||
"narHash": "sha256-Qb9MhKBUTCfWg/wqqaxt89Xfi6qTD3XpTzQ9eXi3JmE=",
|
||||
"lastModified": 1724531977,
|
||||
"narHash": "sha256-XROVLf9ti4rrNCFLr+DmXRZtPjCQTW4cYy59owTEmxk=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "797f7dc49e0bc7fab4b57c021cdf68f595e47841",
|
||||
"rev": "2527da1ef492c495d5391f3bcf9c1dd9f4514e32",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -785,11 +785,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1724224976,
|
||||
"narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=",
|
||||
"lastModified": 1724479785,
|
||||
"narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c374d94f1536013ca8e92341b540eba4c22f9c62",
|
||||
"rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -837,11 +837,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1724440431,
|
||||
"narHash": "sha256-9etXEOUtzeMgqg1u0wp+EdwG7RpmrAZ2yX516bMj2aE=",
|
||||
"lastModified": 1724763886,
|
||||
"narHash": "sha256-SzBtZs5z+YGM50oyt67R78qLhxG/wG5/SlVRsCF5kRc=",
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "c8a54057aae480c56e28ef3e14e4960628ac495b",
|
||||
"rev": "1cd12de659fab215624c630c37d1c62aa2b7824e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -901,11 +901,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1724638882,
|
||||
"narHash": "sha256-ap2jIQi/FuUHR6HCht6ASWhoz8EiB99XmI8Esot38VE=",
|
||||
"lastModified": 1724811750,
|
||||
"narHash": "sha256-PvhVgQ1rm3gfhK7ts4emprhh/KMkFwXogmgsQ3srR7g=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "19b70f147b9c67a759e35824b241f1ed92e46694",
|
||||
"rev": "6a1c4915dca7149e7258d8c7f3ac634d8c65f6c6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
62
home-manager/modules/kanshi/default.nix
Normal file
62
home-manager/modules/kanshi/default.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.eboskma.services.kanshi;
|
||||
in
|
||||
{
|
||||
options.eboskma.services.kanshi = {
|
||||
enable = mkEnableOption "kanshi";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
settings = [
|
||||
{
|
||||
profile = {
|
||||
name = "local";
|
||||
outputs = [
|
||||
{
|
||||
criteria = "DP-1";
|
||||
status = "enable";
|
||||
}
|
||||
{
|
||||
criteria = "DP-3";
|
||||
status = "enable";
|
||||
}
|
||||
{
|
||||
criteria = "HDMI-A-1";
|
||||
status = "disable";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
profile = {
|
||||
name = "remote";
|
||||
outputs = [
|
||||
{
|
||||
criteria = "DP-1";
|
||||
status = "disable";
|
||||
}
|
||||
{
|
||||
criteria = "DP-3";
|
||||
status = "disable";
|
||||
}
|
||||
{
|
||||
criteria = "HDMI-A-1";
|
||||
status = "enable";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
home.packages = [ config.services.kanshi.package ];
|
||||
};
|
||||
}
|
|
@ -129,6 +129,7 @@
|
|||
hardware = {
|
||||
enableAllFirmware = true;
|
||||
nvidia = {
|
||||
open = false;
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true; # Needed to make hibernate work properly
|
||||
forceFullCompositionPipeline = true;
|
||||
|
|
|
@ -161,6 +161,7 @@ in
|
|||
};
|
||||
};
|
||||
services = {
|
||||
kanshi.enable = true;
|
||||
xbanish.enable = false;
|
||||
wayvnc = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue