Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
This commit is contained in:
Alex Stan 2024-10-02 20:54:59 +03:00
parent 2572de0454
commit 22883ed621
3 changed files with 76 additions and 6 deletions

View file

@ -51,9 +51,12 @@
url = "github:nix-community/emacs-overlay"; url = "github:nix-community/emacs-overlay";
}; };
nix-inst = { nix-inst = {
url = "git+http://git.envs.net/binarycat/nix-inst"; url = "git+https://git.envs.net/binarycat/nix-inst";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
niri = {
url = "github:sodiboo/niri-flake";
};
}; };
outputs = { self, nixpkgs, home-manager, ... }@inputs: { outputs = { self, nixpkgs, home-manager, ... }@inputs: {

View file

@ -9,6 +9,7 @@ in {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
inputs.niri.nixosModules.niri
]; ];
# qt.platformTheme = lib.mkForce "gtk2"; # qt.platformTheme = lib.mkForce "gtk2";
@ -70,7 +71,12 @@ in {
libinput.enable = true; libinput.enable = true;
}; };
flatpak.enable = true; flatpak.enable = true;
printing.enable = true; printing = {
enable = true;
drivers = with pkgs; [
hplip
];
};
openssh.enable = true; openssh.enable = true;
guix = { guix = {
enable = false; enable = false;
@ -83,6 +89,9 @@ in {
tailscale = { tailscale = {
enable = true; enable = true;
}; };
gnome = {
gnome-remote-desktop.enable = true;
};
}; };
qt.platformTheme = lib.mkForce "gnome"; qt.platformTheme = lib.mkForce "gnome";
@ -126,8 +135,8 @@ in {
remmina remmina
arduino-ide arduino-ide
prusa-slicer prusa-slicer
solaar weylus
niri deskreen
]; ];
shell = pkgs.zsh; shell = pkgs.zsh;
ignoreShellProgramCheck = true; # I configured zsh with home-manager ignoreShellProgramCheck = true; # I configured zsh with home-manager
@ -142,6 +151,12 @@ in {
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs = {
overlays = [
inputs.niri.overlays.niri
];
};
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -155,6 +170,7 @@ in {
gnomeExtensions.gsconnect gnomeExtensions.gsconnect
gnomeExtensions.media-controls gnomeExtensions.media-controls
gnomeExtensions.solaar-extension gnomeExtensions.solaar-extension
gnomeExtensions.paperwm
nerdfonts nerdfonts
everblush everblush
bibata-cursors bibata-cursors
@ -163,6 +179,10 @@ in {
gnome.gnome-software gnome.gnome-software
evtest evtest
appimagekit appimagekit
solaar
hplip
cozette
gnome.gnome-remote-desktop
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
@ -245,4 +265,16 @@ in {
hardware.wooting.enable = true; hardware.wooting.enable = true;
hardware.flipperzero.enable = true; hardware.flipperzero.enable = true;
hardware = {
logitech = {
wireless = {
enable = true;
enableGraphical = true;
};
};
};
programs = {
niri.enable = true;
};
} }

View file

@ -88,11 +88,13 @@ in {
imports = [ imports = [
inputs.hyprland.homeManagerModules.default inputs.hyprland.homeManagerModules.default
inputs.nix-index-database.hmModules.nix-index inputs.nix-index-database.hmModules.nix-index
inputs.niri.homeModules.niri
]; ];
# Allow unfree packages # Allow unfree packages
nixpkgs = { nixpkgs = {
overlays = [ overlays = [
(import inputs.emacs-overlay) (import inputs.emacs-overlay)
inputs.niri.overlays.niri
]; ];
config = { config = {
allowUnfree = true; allowUnfree = true;
@ -203,7 +205,7 @@ in {
withWayland = true; withWayland = true;
}) })
*/ */
# eww eww
# (eww.override { withWayland = true; }) # (eww.override { withWayland = true; })
notify-desktop notify-desktop
libnotify libnotify
@ -221,7 +223,7 @@ in {
amfora amfora
weechat weechat
filezilla filezilla
fluffychat # fluffychat # insecure apparently
bitwarden bitwarden
akregator akregator
# bitwarden # bitwarden
@ -274,7 +276,10 @@ in {
tea tea
thefuck thefuck
playerctl playerctl
fuzzel
# nyxt # nyxt
lmms
cozette
]; ];
file = { file = {
"emacs.d/everblush-theme.el".source = ./configs/emacs/everblush-theme.el; "emacs.d/everblush-theme.el".source = ./configs/emacs/everblush-theme.el;
@ -486,6 +491,36 @@ in {
enable = true; enable = true;
}; };
}; };
niri = {
enable = true;
package = pkgs.niri-stable;
settings = {
outputs = {
eDP-1 = {
enable = true;
scale = 2.25;
position = { x = 0; y = 0; };
};
DP-2 = {
enable = true;
scale = 2.25;
position = { x = 0; y = 960; };
};
};
binds = with config.lib.niri.actions; {
"Mod+T".action.spawn = "alacritty";
"Mod+D".action.spawn = "fuzzel";
"Mod+Shift+E".action = quit;
"Mod+Ctrl+shift+E".action = quit { skip-confirmation = true; };
"Mod+Shift+Slash".action = show-hotkey-overlay;
"Mod+F".action = fullscreen-window;
};
};
};
eww = {
enable = true;
configDir = ./configs/eww;
};
}; };
services = { services = {
dunst.enable = false; dunst.enable = false;