me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

not working

+35 -24
+25 -22
configuration.nix
··· 1 - { config, pkgs, ... }: 1 + { config, pkgs, inputs, ... }: 2 2 3 3 { 4 4 imports = 5 5 [ # Include the results of the hardware scan. 6 6 ./hardware-configuration.nix 7 + inputs.niri-flake.nixosModules.niri 7 8 ]; 8 9 9 10 nix.settings.experimental-features = [ "nix-command" "flakes" ]; ··· 14 15 15 16 # Use latest kernel. 16 17 boot.kernelPackages = pkgs.linuxPackages_latest; 18 + 19 + services.xserver.videoDrivers = [ "intel" ]; 20 + boot.initrd.kernelModules = [ "i915" ]; 17 21 18 22 networking.hostName = "nixos"; # Define your hostname. 19 23 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. ··· 43 47 LC_TIME = "en_US.UTF-8"; 44 48 }; 45 49 50 + programs.niri.enable = true; 46 51 47 - services.greetd = { 48 - enable = true; 49 - # Example with regreet (graphical) 50 - package = pkgs.greetd.regreet; 51 - # Or tuigreet (console) 52 - # package = pkgs.greetd.tuigreet; 53 - }; 52 + services.greetd = { 53 + enable = true; 54 + # Example with regreet (graphical) 55 + package = pkgs.greetd.regreet; 56 + # Or tuigreet (console) 57 + # package = pkgs.greetd.tuigreet; 58 + }; 54 59 55 60 xdg.portal = { 56 61 enable = true; 57 - wlr.enable = true; 58 - extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; 62 + 63 + # Specify the backends you want to use. 64 + # The order matters, the first one is the primary. 65 + extraPortals = with pkgs; [ 66 + xdg-desktop-portal-wlr 67 + xdg-desktop-portal-gtk 68 + ]; 69 + # Set the default portal for common interfaces. 70 + # "wlr" is for wlroots-based compositors like niri. 71 + # "gtk" is a fallback for file pickers and other things. 72 + config.common.default = [ "wlr" "gtk" ]; 59 73 }; 60 - 61 - 62 - 63 74 64 75 # Enable CUPS to print documents. 65 76 services.printing.enable = true; ··· 87 98 users.users.sean = { 88 99 isNormalUser = true; 89 100 description = "Sean Aye"; 90 - extraGroups = [ "networkmanager" "wheel" ]; 101 + extraGroups = [ "networkmanager" "wheel" "video" ]; 91 102 shell = pkgs.fish; 92 103 }; 93 104 ··· 121 132 SUDO_EDITOR = "hx"; 122 133 }; 123 134 124 - 125 - # Some programs need SUID wrappers, can be configured further or are 126 - # started in user sessions. 127 - # programs.mtr.enable = true; 128 - # programs.gnupg.agent = { 129 - # enable = true; 130 - # enableSSHSupport = true; 131 - # }; 132 135 133 136 # List services that you want to enable: 134 137 nixarr = {
+10 -2
home.nix
··· 4 4 { 5 5 # Import the home-manager modules you want to use 6 6 imports = [ 7 - inputs.niri-flake.homeModules.niri 8 7 inputs.catppuccin.homeModules.catppuccin 9 8 ]; 10 9 11 10 # Niri window manager settings, now controlled by the imported module 12 - programs.niri.enable = true; 11 + programs.niri = { 12 + enable = true; 13 + settings = { 14 + outputs = { 15 + "DP-1" = { 16 + scale = 2.0; 17 + }; 18 + }; 19 + }; 20 + }; 13 21 14 22 # Catppuccin theme for Waybar 15 23 catppuccin.waybar = {