trying to install
This commit is contained in:
parent
58d5677045
commit
34a623bb4a
|
@ -115,8 +115,8 @@
|
|||
/* set host specific properties here */
|
||||
NixOS = { };
|
||||
curve = {
|
||||
channelName = "latest";
|
||||
modules = [ ]; # nixos-hardware.nixosModules.lenovo-thinkpad
|
||||
channelName = "nixos";
|
||||
#modules = [ ]; # nixos-hardware.nixosModules.lenovo-thinkpad
|
||||
# Yubikey
|
||||
};
|
||||
box = { };
|
||||
|
@ -130,6 +130,7 @@
|
|||
base = [ core users.nixos users.root nvim ];
|
||||
sealight = [ base ]; # matrix rsshub backup wireguard
|
||||
mossnet = [ base ]; # shaarli wallabag nextcloud taskwarrior headphones
|
||||
curve = [ base desktop ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -141,12 +142,12 @@
|
|||
profiles = digga.lib.rakeLeaves ./users/profiles;
|
||||
suites = with profiles; rec {
|
||||
base = [ direnv git ];
|
||||
gui = [ base firefox desktop ]
|
||||
gui = [ base firefox desktop ];
|
||||
};
|
||||
};
|
||||
users = {
|
||||
nixos = { suites, ... }: { imports = suites.base; };
|
||||
anish = { suites, ... }: { imports = suites.gui; };
|
||||
curve = { suites, ... }: { imports = suites.gui; };
|
||||
}; # digga.lib.importers.rakeLeaves ./users/hm;
|
||||
};
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
imports = [ ./curve-hardware-configuration ];
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.version = 2;
|
||||
# Define on which hard drive you want to install Grub.
|
|
@ -4,6 +4,7 @@
|
|||
profiles.core
|
||||
profiles.users.anish
|
||||
profiles.hardware.curve # how else to deal with hardware?
|
||||
suites.gui
|
||||
];
|
||||
|
||||
bud.enable = true;
|
||||
}
|
13
hosts/curve/default.nix
Normal file
13
hosts/curve/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ profiles, suites, ... }:
|
||||
{
|
||||
imports = [
|
||||
./configuration.nix
|
||||
profiles.users.anish
|
||||
] ++ suites.curve;
|
||||
|
||||
home-manager.users.anish = { suites, ... }: {
|
||||
imports = suites.gui;
|
||||
};
|
||||
|
||||
#bud.enable = true;
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
|
||||
}
|
|
@ -36,6 +36,7 @@
|
|||
glow
|
||||
gitAndTools.gitFull
|
||||
dig
|
||||
wpa_supplicant
|
||||
#neovim defined in ./nvim.nix
|
||||
#wofi
|
||||
#firefox
|
||||
|
|
43
profiles/desktop/default.nix
Normal file
43
profiles/desktop/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ config, pkgs, ...}:
|
||||
|
||||
{
|
||||
#imports = [ ./music.nix ]
|
||||
environment.systemPackages = with pkgs; [
|
||||
lightdm
|
||||
dunst
|
||||
libnotify
|
||||
(polybar.override {
|
||||
pulseSupport = true;
|
||||
nlSupport = true;
|
||||
})
|
||||
];
|
||||
|
||||
services = {
|
||||
picom.enable = true;
|
||||
#redshift.enable = true;
|
||||
xserver = {
|
||||
enable = true;
|
||||
displayManager = {
|
||||
defaultSession = "none+bspwm";
|
||||
lightdm.enable = true;
|
||||
lightdm.greeters.mini.enable = true;
|
||||
};
|
||||
windowManager.bspwm.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services."dunst" = {
|
||||
enable = true;
|
||||
description = "";
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig.Restart = "always";
|
||||
serviceConfig.RestartSec = 2;
|
||||
serviceConfig.ExecStart = "${pkgs.dunst}/bin/dunst";
|
||||
};
|
||||
services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
|
||||
text-color = "#ff79c6"
|
||||
password-background-color = "#1E2029"
|
||||
window-color = "#181a23"
|
||||
border-color = "#181a23"
|
||||
'';
|
||||
}
|
|
@ -1,70 +0,0 @@
|
|||
{ pkgs, ...}:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
tidal
|
||||
vcv-rack
|
||||
supercollider
|
||||
orca-c
|
||||
carla
|
||||
helm
|
||||
lmms
|
||||
sunvox
|
||||
];
|
||||
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = false;
|
||||
jack.enable = true;
|
||||
# Low latency pipewire
|
||||
# The best way to get everything working is to keep increasing the quant value until you get no crackles (underruns) or until you get audio again (in case there wasn't any). This won't guarantee the lowest possible latency, but will provide a decent one paired with stable audio.
|
||||
config.pipewire = {
|
||||
"context.properties" = {
|
||||
"link.max-buffers" = 16;
|
||||
"log.level" = 2;
|
||||
"default.clock.rate" = 48000;
|
||||
"default.clock.quantum" = 32;
|
||||
"default.clock.min-quantum" = 32;
|
||||
"default.clock.max-quantum" = 32;
|
||||
"core.daemon" = true;
|
||||
"core.name" = "pipewire-0";
|
||||
};
|
||||
"context.modules" = [
|
||||
{
|
||||
name = "libpipewire-module-rtkit";
|
||||
args = {
|
||||
"nice.level" = -15;
|
||||
"rt.prio" = 88;
|
||||
"rt.time.soft" = 200000;
|
||||
"rt.time.hard" = 200000;
|
||||
};
|
||||
flags = [ "ifexists" "nofail" ];
|
||||
}
|
||||
|
||||
{ name = "libpipewire-module-protocol-native"; }
|
||||
{ name = "libpipewire-module-profiler"; }
|
||||
{ name = "libpipewire-module-metadata"; }
|
||||
{ name = "libpipewire-module-spa-device-factory"; }
|
||||
{ name = "libpipewire-module-spa-node-factory"; }
|
||||
{ name = "libpipewire-module-client-node"; }
|
||||
{ name = "libpipewire-module-client-device"; }
|
||||
|
||||
{
|
||||
name = "libpipewire-module-portal";
|
||||
flags = [ "ifexists" "nofail" ];
|
||||
}
|
||||
{
|
||||
name = "libpipewire-module-access";
|
||||
args = {};
|
||||
}
|
||||
|
||||
{ name = "libpipewire-module-adapter"; }
|
||||
{ name = "libpipewire-module-link-factory"; }
|
||||
{ name = "libpipewire-module-session-manager"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -89,7 +89,7 @@ in
|
|||
taskwiki
|
||||
vim-zettel
|
||||
#vimwiki-sync
|
||||
telescope-nvim
|
||||
#telescope-nvim
|
||||
# Clojure stuff
|
||||
conjure
|
||||
vim-sexp
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
{hmUsers, ...}:
|
||||
|
||||
{
|
||||
home-manager.users = { inherit (hmUsers) anish; };
|
||||
#home-manager.users = { inherit (hmUsers) anish; };
|
||||
|
||||
users.users.anish = {
|
||||
password = "SuperDuper";
|
||||
description = "Personal user for Anish";
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "audio" ];
|
||||
};
|
||||
|
||||
programs.git
|
||||
userName = "Anish Lakhwara";
|
||||
userEmail = "anish+git@lakhwara.com";
|
||||
delta.enable = true;
|
||||
#home-manager.programs.git = {
|
||||
# userName = "Anish Lakhwara";
|
||||
# userEmail = "anish+git@lakhwara.com";
|
||||
# delta.enable = true;
|
||||
#};
|
||||
|
||||
home-manager.users.anish = { suites, ... }: {
|
||||
imports = suites.gui;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
{pkgs, ...}:
|
||||
|
||||
{
|
||||
# Enable bspwm and sxhkd
|
||||
xsession.windowManager.bspwm = {
|
||||
|
@ -26,36 +28,37 @@
|
|||
source "$file"
|
||||
done
|
||||
'';
|
||||
}
|
||||
};
|
||||
services.sxhkd.enable = true;
|
||||
|
||||
# Add gtk theme for Dracular and Paper
|
||||
# Set wallpaper
|
||||
|
||||
# Install themes
|
||||
user.packages = with pkgs; [
|
||||
unstable.dracula-theme
|
||||
paper-icon-theme
|
||||
];
|
||||
# More nixOS Config
|
||||
#packages = with pkgs; [
|
||||
# dracula-theme
|
||||
# paper-icon-theme
|
||||
#];
|
||||
|
||||
# Font stuff
|
||||
fonts = {
|
||||
fonts = with pkgs; [
|
||||
fire-code
|
||||
hermit
|
||||
hack
|
||||
fire-code-symbols
|
||||
siji
|
||||
font-awesome-ttf
|
||||
];
|
||||
fontconfig.defaultFonts = {
|
||||
sansSerif = ["Hermit"];
|
||||
monospace = ["Hermit"];
|
||||
};
|
||||
};
|
||||
#fonts = {
|
||||
# fonts = with pkgs; [
|
||||
# fire-code
|
||||
# hermit
|
||||
# hack
|
||||
# fire-code-symbols
|
||||
# siji
|
||||
# font-awesome-ttf
|
||||
# ];
|
||||
# fontconfig.defaultFonts = {
|
||||
# sansSerif = ["Hermit"];
|
||||
# monospace = ["Hermit"];
|
||||
# };
|
||||
#};
|
||||
|
||||
# Move required config files around
|
||||
home.configFile = {
|
||||
home.file = {
|
||||
"bspwm/rc.d/polybar".source = ./run.sh;
|
||||
"sxhkdrc".source = ./sxhkdrc;
|
||||
"rofi/theme" = {
|
||||
|
@ -70,12 +73,13 @@
|
|||
};
|
||||
|
||||
# Login screen
|
||||
services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
|
||||
text-color = "#ff79c6"
|
||||
password-background-color = "#1E2029"
|
||||
window-color = "#181a23"
|
||||
border-color = "#181a23"
|
||||
'';
|
||||
# not a home-manager variable, just nixOS one
|
||||
#services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
|
||||
# text-color = "#ff79c6"
|
||||
# password-background-color = "#1E2029"
|
||||
# window-color = "#181a23"
|
||||
# border-color = "#181a23"
|
||||
# '';
|
||||
|
||||
# Compositor
|
||||
services.picom = {
|
||||
|
@ -87,14 +91,14 @@
|
|||
shadowOpacity = 0.22;
|
||||
# activeOpacity = "1.00";
|
||||
# inactiveOpacity = "0.92";
|
||||
settings = {
|
||||
extraOptions = ''
|
||||
shadow-radius = 12;
|
||||
# blur-background = true;
|
||||
# blur-background-frame = true;
|
||||
# blur-background-fixed = true;
|
||||
blur-kern = "7x7box";
|
||||
blur-strength = 320;
|
||||
};
|
||||
'';
|
||||
};
|
||||
|
||||
programs.autorandr.enable = true;
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
{
|
||||
programs.browserpass.enable = true;
|
||||
programs.browserpass.browsers = [ "firefox" ];
|
||||
env.XDG_DEXSTOP_DIR = "$HOME/";
|
||||
#env.XDG_DEXSTOP_DIR = "$HOME/";
|
||||
programs.firefox.profiles.anish.userChrome = (builtins.readFile ./userChrome.css);
|
||||
programs.firefox.profiles.anish.settings = {
|
||||
"devtools.theme" = "dark";
|
||||
# Enable userContent.css and userChrome.css for our theme modules
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
# Stop creating ~/Downloads!
|
||||
"browser.download.dir" = "${config.user.home}/downloads";
|
||||
"browser.download.dir" = "/home/anish/downloads"; # TODO Don't hardcode this!
|
||||
# Don't use the built-in password manager; a nixos user is more likely
|
||||
# using an external one (you are using one, right?).
|
||||
#"signon.rememberSignons" = false;
|
||||
|
@ -84,17 +84,18 @@
|
|||
"datareporting.healthreport.service.enabled" = false;
|
||||
"datareporting.policy.dataSubmissionEnabled" = false;
|
||||
};
|
||||
user.packages = with pkgs; [
|
||||
firefox-bin
|
||||
(makeDesktopItem {
|
||||
name = "firefox-private";
|
||||
desktopName = "Firefox (Private)";
|
||||
genericName = "Open a private Firefox window";
|
||||
icon = "firefox";
|
||||
exec = "${firefox-bin}/bin/firefox --private-window";
|
||||
categories = "Network";
|
||||
})
|
||||
];
|
||||
# Override?
|
||||
#packages = with pkgs; [
|
||||
# firefox-bin
|
||||
# (makeDesktopItem {
|
||||
# name = "firefox-private";
|
||||
# desktopName = "Firefox (Private)";
|
||||
# genericName = "Open a private Firefox window";
|
||||
# icon = "firefox";
|
||||
# exec = "${firefox-bin}/bin/firefox --private-window";
|
||||
# categories = "Network";
|
||||
# })
|
||||
# ];
|
||||
home.file = let cfgPath = ".mozilla/firefox"; in {
|
||||
"${cfgPath}/profiles.ini".text = ''
|
||||
[Profile0]
|
||||
|
@ -106,5 +107,5 @@
|
|||
StartWithLastProfile=1
|
||||
Version=2
|
||||
'';
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
{
|
||||
home.file = {
|
||||
"git/config".source = ./config;
|
||||
"git/ignore".source = ./ignore;
|
||||
"git/attributes".source = ./attributes;
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
home.configFile = {
|
||||
"git/config".source = "./config";
|
||||
"git/ignore".source = "./ignore";
|
||||
"git/attributes".source = "./attributes";
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
pull.rebase = false;
|
||||
|
|
Loading…
Reference in a new issue