some fixes for nixos

This commit is contained in:
Maddie H 2023-05-26 18:22:13 +01:00
parent 2c6fa4dc3e
commit 14d49173af
Signed by: maddie
GPG Key ID: C296DE8C9053683F
5 changed files with 32 additions and 10 deletions

View File

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1684148371, "lastModified": 1684343812,
"narHash": "sha256-CEVaArsziqantqU418XXruNDjPZN/HC3x1rqr2D4g+o=", "narHash": "sha256-ZTEjiC8PDKeP8JRchuwcFXUNlMcyQ4U+DpyVZ3pB6Q4=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "0dbf1c2fb1a5a0372a324eff1ba44f9da66febd2", "rev": "dfbdabbb3e797334172094d4f6c0ffca8c791281",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -27,11 +27,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1684189380, "lastModified": 1684321175,
"narHash": "sha256-GUp9OkZynocyppLur1VX8oAjtXGue0oKRHbsksOMUm0=", "narHash": "sha256-V4EbM+jK7pvjKBaj0dgAiW9ultzDE27Nz5fRyu/ceMk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b7d814c5744dca7e70b3dc2638f06568dce96ca6", "rev": "59659243cd4ababda605e79b4a9c2e6d83e24c86",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -42,11 +42,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1684242266, "lastModified": 1684363872,
"narHash": "sha256-uaCQ2k1bmojHKjWQngvnnnxQJMY8zi1zq527HdWgQf8=", "narHash": "sha256-jkvhzrICFSmj+NBHksKTWzs8Q3+D7RsVK0wLKacbu8s=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7e0743a5aea1dc755d4b761daf75b20aa486fdad", "rev": "1d77f3b72756ca36f16440c59e6b89a957908647",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -8,5 +8,8 @@
home.file.".xinitrc".text = '' home.file.".xinitrc".text = ''
# Set RGB perhipherals to white # Set RGB perhipherals to white
${pkgs.openrgb}/bin/openrgb -c white -m static & ${pkgs.openrgb}/bin/openrgb -c white -m static &
# Start my razer keyboard script
${pkgs.python3Full}/bin/python ${config.home.homeDirectory}/Documents/Code/Razer/system.py &
''; '';
} }

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
{ {
qt = { qt = {
@ -8,4 +8,8 @@
name = "adwaita-dark"; name = "adwaita-dark";
}; };
}; };
home.sessionVariables = {
QT_STYLE_OVERRIDE = "adwaita-dark";
};
} }

View File

@ -5,6 +5,7 @@
programs.zsh.profileExtra = '' programs.zsh.profileExtra = ''
# If on /dev/tty1 then run startx automatically # If on /dev/tty1 then run startx automatically
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
sleep 2
exec ${pkgs.xorg.xinit}/bin/startx exec ${pkgs.xorg.xinit}/bin/startx
fi fi
''; '';

View File

@ -0,0 +1,14 @@
{ config, ... }:
{
services.avahi = {
enable = true;
nssmdns = true;
publish = {
enable = true;
addresses = true;
workstation = true;
userServices = true;
};
};
}