Compare commits
No commits in common. "56459a0285b7f5e23252fe479d5b9129ea57fb06" and "0ce69398e3cd263ed44dac6f924a043aa6d56f7d" have entirely different histories.
56459a0285
...
0ce69398e3
|
@ -68,7 +68,6 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users."gunalx" = import ./home/full.nix;
|
||||
home-manager.backupFileExtension = "bac";
|
||||
home-manager.extraSpecialArgs = {inherit nix-colors inputs;};
|
||||
}
|
||||
#need to choose one. The nixos one has bootloader and display manager in addition to the home manager one.
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
{ lib, stdenv, pkgs }:
|
||||
{ stdenv, lib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wallpapers";
|
||||
version = "1.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "file://./";
|
||||
sha256 = lib.fakeSha256;
|
||||
};
|
||||
src = ./;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/wallpapers
|
||||
|
@ -20,4 +17,3 @@ stdenv.mkDerivation rec {
|
|||
maintainers = with maintainers; [ adriangl ];
|
||||
};
|
||||
}
|
||||
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 3.3 MiB After Width: | Height: | Size: 3.3 MiB |
|
@ -57,20 +57,5 @@ in{
|
|||
};
|
||||
|
||||
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Adwaita-dark";
|
||||
package = pkgs.gnome.gnome-themes-extra;
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "adwaita";
|
||||
style.name = "adwaita-dark";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -15,34 +15,32 @@
|
|||
compression = true;
|
||||
|
||||
matchBlocks = {
|
||||
"*.pvv.ntnu.no" = {
|
||||
user="adriangl";
|
||||
};
|
||||
"*.ntnu.no !*.pvv.ntnu.no" = {
|
||||
user="adriangl";
|
||||
proxyJump="isvegg.pvv.ntnu.no";
|
||||
};
|
||||
"snotra" = {
|
||||
user="adriangl";
|
||||
proxyJump="adriangl@isvegg.pvv.ntnu.no";
|
||||
hostname="snotra.idi.ntnu.no";
|
||||
proxyJump="isvegg.pvv.ntnu.no";
|
||||
host="snotra.idi.ntnu.no";
|
||||
};
|
||||
|
||||
#pvv
|
||||
"pvv" = {
|
||||
user="adriangl";
|
||||
hostname="login.pvv.ntnu.no";
|
||||
host="login.pvv.ntnu.no";
|
||||
match="pvv";
|
||||
};
|
||||
"isvegg" = {
|
||||
user="adriangl";
|
||||
hostname="isvegg.pvv.ntnu.no";
|
||||
host="isvegg.pvv.ntnu.no";
|
||||
};
|
||||
|
||||
#home
|
||||
"aragon" = {
|
||||
port = 6969;
|
||||
user="gunalx";
|
||||
hostname="100.74.34.149";
|
||||
host = "100.74.34.149";
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
let
|
||||
#wallpapers = import ./wallpapers { inherit lib pkgs; };
|
||||
|
||||
wallpapers = import ./wallpaper.nix { inherit pkgs; };
|
||||
palette = config.colorScheme.palette;
|
||||
|
||||
|
||||
idlelock = "brightnessctl -d intel_backlight s 10% && swaylock && brightnessctl -d intel_backlight s 50% ";
|
||||
|
||||
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
@ -15,20 +9,14 @@ in
|
|||
./foot.nix
|
||||
./fonts.nix
|
||||
./kanshi.nix
|
||||
./swaylock.nix
|
||||
#./assets/wallpapers
|
||||
];
|
||||
|
||||
|
||||
#home.packages = [
|
||||
# wallpapers
|
||||
#];
|
||||
home.packages = with pkgs; [
|
||||
wl-clipboard
|
||||
libsForQt5.qt5ct
|
||||
qt6Packages.qt6ct
|
||||
pass-wayland
|
||||
wev
|
||||
pass-wayland
|
||||
|
||||
#term
|
||||
foot
|
||||
|
@ -54,7 +42,7 @@ in
|
|||
#lockscreen and related
|
||||
wleave
|
||||
swayidle
|
||||
#swaylock-effects
|
||||
swaylock-effects
|
||||
#swaylock-fancy #migth change to this default may look prettier.
|
||||
|
||||
#ligth and sound
|
||||
|
@ -94,6 +82,9 @@ in
|
|||
|
||||
];
|
||||
|
||||
qt.enable = true;
|
||||
qt.style.name = "adwaita-dark";
|
||||
|
||||
|
||||
home.sessionVariables = {
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
|
@ -112,16 +103,10 @@ in
|
|||
_JAVA_AWT_WM_NONREPARENTING = 1;
|
||||
|
||||
# gtk applications on wayland
|
||||
GTK_BACKEND="wayland";
|
||||
|
||||
#WALLPAPER_DIR="${wallpapers}/share/wallpapers";
|
||||
WALLPAPER_DIR="/home/gunalx/Pictures/wallpapers";
|
||||
|
||||
#GTK_BACKEND="wayland";
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
wayland.windowManager.sway = let
|
||||
cfg = config.wayland.windowManager.sway;
|
||||
in {
|
||||
|
@ -129,6 +114,7 @@ in {
|
|||
enable = true;
|
||||
systemd.enable = true;
|
||||
|
||||
|
||||
config = rec {
|
||||
|
||||
modifier = "Mod4";
|
||||
|
@ -142,18 +128,8 @@ in {
|
|||
}];
|
||||
startup = [
|
||||
{command = "foot --server";}
|
||||
|
||||
#wallpaper
|
||||
{command = "swww-daemon";}
|
||||
{command = "while true; do for wallpaper in $WALLPAPER_DIR/*; do swww img \"$wallpaper\"; sleep 15; done; done;";}
|
||||
|
||||
#idlelock
|
||||
{command = ''swayidle \
|
||||
timeout 120 ${idlelock} \
|
||||
timeout 180 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep ${idlelock}
|
||||
'';}
|
||||
{command = ''while true; do for wallpaper in $WALLPAPER_DIR/*; do swww img "$wallpaper"; sleep 300; done; done'';}
|
||||
|
||||
{command = "firefox";}
|
||||
{command = "nm-applet";}
|
||||
|
@ -257,24 +233,14 @@ in {
|
|||
"${cfg.config.modifier}+Shift+c" = "exec code";
|
||||
"${cfg.config.modifier}+f11" = "exec grim -g \"$(slurp)\" ~/Pictures/screenshots/\"screenshot-`date +%F-%T`\".png";
|
||||
"${cfg.config.modifier}+Print" = "exec grim -g \"$(slurp)\" ~/Pictures/screenshots/\"screenshot-`date +%F-%T`\".png";
|
||||
"${cfg.config.modifier}+m" = "exec ${idlelock}";
|
||||
"ctrl+space" = "exec xkb_switch_layout next"; #TODO:verify
|
||||
"${cfg.config.modifier}+tab" = "workspace next";
|
||||
"Alt+tab" = "workspace back_and_forth";
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
input type:keyboard {
|
||||
xkb_capslock disabled
|
||||
xkb_numlock enabled
|
||||
|
||||
xkb_layout us,no
|
||||
xkb_options :
|
||||
}
|
||||
|
||||
|
||||
|
||||
input type:keyboard xkb_capslock disabled
|
||||
input type:keyboard xkb_numlock enabled
|
||||
xwayland enable
|
||||
|
||||
smart_borders no_gaps
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
{ pkgs, inputs, lib, config, nix-colors, ... }:
|
||||
let
|
||||
palette = config.colorScheme.palette;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
];
|
||||
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
settings = {
|
||||
color = palette.base00;
|
||||
screenshots = true;
|
||||
grace = 15;
|
||||
clock = true;
|
||||
submit-on-touch = true;
|
||||
indicator-idle-visible = true;
|
||||
indicator-radius = 100;
|
||||
indicator-thickness = 7;
|
||||
ring-color = palette.base05;
|
||||
key-hl-color = palette.base03;
|
||||
tect-color = palette.base00;
|
||||
line-colot = palette.base00;
|
||||
innside-color = palette.base04;
|
||||
seperator-color = palette.base00;
|
||||
fade-in = 0.1;
|
||||
effect-scale = 0.6;
|
||||
effect-blur = "7x3";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
wallpapers = pkgs.callPackage ./assets {};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
wallpapers
|
||||
];
|
||||
|
||||
home.packages = [
|
||||
wallpapers
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
WALLPAPER_DIR = "${wallpapers}/share/wallpapers";
|
||||
};
|
||||
}
|
|
@ -46,7 +46,7 @@
|
|||
users.users.gunalx = {
|
||||
isNormalUser = true;
|
||||
description = "Adrian Gunnar Lauterer";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" "input" "audio"];
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
];
|
||||
};
|
||||
|
|
|
@ -40,13 +40,10 @@ imports =
|
|||
];
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = false; #temp off because of CVE
|
||||
services.printing.enable = true;
|
||||
|
||||
security.polkit.enable = true;
|
||||
|
||||
security.pam.services.swaylock = {};
|
||||
security.pam.services.swaylock-effects = {};
|
||||
|
||||
services.displayManager = {
|
||||
enable = true;
|
||||
sessionPackages = with pkgs; [ sway ];
|
||||
|
@ -63,24 +60,7 @@ imports =
|
|||
services.desktopManager.plasma6.enable = true;
|
||||
services.desktopManager.plasma6.enableQt5Integration = true;
|
||||
|
||||
#bluetooth
|
||||
services.blueman.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
||||
hardware.bluetooth = {
|
||||
enable = true; # enables support for Bluetooth
|
||||
settings = {
|
||||
General = {
|
||||
Enable = "Source,Sink,Media,Socket";
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#automount
|
||||
services.udisks2.enable = true;
|
||||
|
||||
#qt.platformTheme = "kde";
|
||||
qt.platformTheme = "kde";
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb = {
|
||||
|
|
|
@ -29,8 +29,7 @@ imports =
|
|||
rustup
|
||||
|
||||
|
||||
mpi
|
||||
gnuplot
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ imports =
|
|||
|
||||
];
|
||||
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
|
@ -19,7 +19,6 @@ imports =
|
|||
wireplumber.enable = true;
|
||||
};
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pavucontrol
|
||||
wireplumber
|
||||
|
@ -34,7 +33,7 @@ imports =
|
|||
synthesia
|
||||
vital
|
||||
picoloop
|
||||
#bespokesynth-with-vst2 #always takes ages compiling
|
||||
bespokesynth-with-vst2
|
||||
fmsynth
|
||||
polyphone #soundfont editor
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ imports =
|
|||
];
|
||||
|
||||
|
||||
#qt.platformTheme = "qt5ct";
|
||||
qt.platformTheme = "qt5ct";
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue