Added NixOS configs

This commit is contained in:
2021-03-31 05:41:15 +05:30
commit 2680d535b5
21 changed files with 1902 additions and 0 deletions

10
Stuff/fonts.nix Normal file
View File

@@ -0,0 +1,10 @@
{lib, config, pkgs, ... }:
{
fonts.fonts = with pkgs; [
fira-mono
font-awesome-ttf
powerline-fonts
vistafonts
];
}

22
Stuff/services.nix Normal file
View File

@@ -0,0 +1,22 @@
{lib, config, pkgs, ... }:
{
systemd.services.nbfc = {
wantedBy = [ "multi-user.target" ];
description = "Notebook Fancontrol";
serviceConfig = {
Type = "forking";
Restart = "on-failure";
ExecStart = "${pkgs.mono}/bin/mono-service -l:/run/nbfc.pid -m:NbfcService /opt/nbfc/NbfcService.exe";
ExecStop = "kill -SIGTERM $(cat /run/nbfc.pid)";
PIDFile = "/run/nbfc.pid";
};
};
services.picom = {
enable = true;
fade = true;
shadow = true;
activeOpacity = 0.96;
inactiveOpacity = 0.86;
};
}

28
Stuff/sound.nix Normal file
View File

@@ -0,0 +1,28 @@
{lib, config, pkgs, ... }:
{
#services.pipewire = {
# enable = true;
# pulse.enable = true;
# config.pipewire = {
# context.properties = {
# default.clock.min-quantum = 8;
# };
#};
# config.pipewire-pulse = {
# context.modules = {
# pulse.min.req = "4/48000"; # 0.08ms
# pulse.min.quantum = "4/48000"; # 0.08ms
#};
#stream.properties = {
# node.latency = "4/48000";
# };
#};
#};
sound.enable = true;
hardware = {
pulseaudio.enable = true;
pulseaudio.support32Bit = true;
};
}

10
Stuff/users.nix Normal file
View File

@@ -0,0 +1,10 @@
{lib, config, pkgs, ... }:
{
users.users.otaku619 = {
isNormalUser = true;
shell = pkgs.fish;
home = "/home/otaku619";
extraGroups = [ "wheel" "video" "audio" ];
};
}