Sun Aug 14 06:35:44 PM CEST 2022

This commit is contained in:
Alexander Szczepanski
2022-08-14 18:35:44 +02:00
parent 6d9f59e21b
commit 6a5607ed9c
9 changed files with 30 additions and 10 deletions

View File

@ -1,23 +0,0 @@
{ config, pkgs, lib, ... }:
{
programs.pantheon-tweaks.enable = true;
services = {
xserver = {
enable = true;
displayManager = {
lightdm = {
enable = true;
greeters.pantheon.enable = true;
};
};
desktopManager.pantheon.enable = true;
layout = "us";
# Enable touchpad support.
libinput.enable = true;
updateDbusEnvironment = true;
};
};
}

View File

@ -1,54 +0,0 @@
{ config, pkgs, lib, ... }:
let
unstable = import <nixos-unstable> { config.allowUnfree = true; };
in
{
programs = {
sway = {
enable = true;
extraPackages = with pkgs; [
wofi
swaylock
swayidle
xwayland
kanshi
grim
slurp
wl-clipboard
(python38.withPackages (ps: with ps; [ i3pystatus keyring ]))
];
extraSessionCommands = ''
export SDL_VIDEODRIVER=wayland
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
export _JAVA_AWT_WM_NONREPARENTING=1
export MOZ_ENABLE_WAYLAND=1
'';
};
};
systemd.user.targets.sway-session = {
description = "Sway compositor session";
documentation = [ "man:systemd.special(7)" ];
bindsTo = [ "graphical-session.target" ];
wants = [ "graphical-session-pre.target" ];
after = [ "graphical-session-pre.target" ];
};
systemd.user.services.kanshi = {
description = "Kanshi output autoconfig ";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
environment = { XDG_CONFIG_HOME = "/home/alex/.config"; };
serviceConfig = {
# kanshi doesn't have an option to specifiy config file yet, so it looks
# at .config/kanshi/config
ExecStart = ''
${pkgs.kanshi}/bin/kanshi
'';
RestartSec = 5;
Restart = "always";
};
};
}

View File

@ -1,44 +0,0 @@
{ config, pkgs, lib, ... }:
let
unstable = import <nixos-unstable> { config.allowUnfree = true; };
in
{
imports = [ <home-manager/nixos> ];
home-manager.users.alex = { pkgs, ... }: {
home = {
packages = with unstable.pkgs; [
bitwarden
cura
cypress
discord
etcher
firefox
font-manager
freecad
fslint
homebank
insomnia
kdenlive
libreoffice
lutris
# mangohud
meld
# obs-studio
pinta
prusa-slicer
rpi-imager
signal-desktop
solaar
spotify
steam
teams
virtmanager
vulkan-tools
wine
winetricks
];
};
};
}

View File

@ -1,135 +0,0 @@
{ config, pkgs, lib, ... }:
with builtins; let
unstable = import <nixos-unstable> { config.allowUnfree = true; };
rofiPin = import
(pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "42ded9d56bf0f56bebfcd49b4e942e7ffba4d5fc";
sha256 = "KK/LIcEIU4mKYuGxXSqyBRA/fVplsRs3gnmtdUCqKxU=";
fetchSubmodules = true;
})
{ };
in
{
imports = [ <home-manager/nixos> ];
home-manager.users.alex = { pkgs, ... }: {
home = {
file = {
".bin/rofi-default-sink.sh" = {
executable = true;
source = ../home/bin/rofi-default-sink.sh;
};
};
packages = with unstable.pkgs; [
baobab
barrier
keepassxc
ponymix #rofi-default
mullvad-vpn
dracula-theme
deadbeef
grsync
];
};
xdg.desktopEntries = {
defaultSink = {
name = "Default Sink";
exec = "/home/alex/.bin/rofi-default-sink.sh";
terminal = false;
};
};
services = {
syncthing = {
enable = true;
};
};
programs = {
vscode = {
enable = true;
package = unstable.pkgs.vscode;
extensions = with unstable.pkgs.vscode-extensions; [
bbenoist.nix
eamodio.gitlens
editorconfig.editorconfig
ms-azuretools.vscode-docker
ms-vsliveshare.vsliveshare
ms-vscode.cpptools
mskelton.one-dark-theme
ms-kubernetes-tools.vscode-kubernetes-tools
ryu1kn.partial-diff
jnoortheen.nix-ide
brettm12345.nixfmt-vscode
];
};
rofi = {
enable = true;
font = "Liberation Sans Regular 20";
package = rofiPin.rofi;
extraConfig = {
modi = "drun,window";
show-icons = true;
color-normal = "#00000000, #a6a6a6, #00000000, #a6a6a6, #000000";
color-window = "#dd000000, #a6a6a6, #a6a6a6";
separator-style = "solid";
padding = 50;
lines = 10;
borderWidth = 2;
hide-scrollbar = true;
};
};
mpv = {
enable = true;
config = {
hwdec = "auto-safe";
vo = "gpu";
profile = "gpu-hq";
};
};
git = {
extraConfig = {
credential.helper = "${
pkgs.git.override { withLibsecret = true; }
}/bin/git-credential-libsecret";
};
};
kitty = {
enable = true;
extraConfig = ''
enable_audio_bell false
background #000000
foreground #e9e9e9
cursor #e9e9e9
selection_background #424242
color0 #000000
color8 #000000
color1 #d44d53
color9 #d44d53
color2 #b9c949
color10 #b9c949
color3 #e6c446
color11 #e6c446
color4 #79a6da
color12 #79a6da
color5 #c396d7
color13 #c396d7
color6 #70c0b1
color14 #70c0b1
color7 #fffefe
color15 #fffefe
selection_foreground #000000
'';
};
};
};
}

View File

@ -32,24 +32,25 @@ in
home = {
stateVersion = "22.05";
packages = with unstable.pkgs; [
exa
broot
ffmpeg
tealdeer
atop
bpytop
broot
dfc
exa
ffmpeg
git-secret
glances
htop
kubectl
ncdu
neofetch
nixfmt
pstree
ranger
sshfs
tealdeer
unrar
youtube-dl
yt-dlp
];
sessionPath = [
"$HOME/.npm-packages"