diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-02-01 18:40:39 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-01 18:40:39 +0530 |
| commit | 88cc3e7e0765b5dd11b06db442ad46536342bba5 (patch) | |
| tree | d3b1c7b0d54ef3c2274d64967a3bcd2818c03c8e /modules | |
| parent | 01bb0877c285383fd2857920048bd2576f4d31e9 (diff) | |
Updates (#1)
* .
* .
* .
* .
* .
* .
* .
* .
* .
* .
* update
* .
* temp
* .
* .
* .
* .
* .
* .
* .
* .
* .
* .
* .
* .
* temp
* .
* .
* .
* update
Diffstat (limited to '')
| -rw-r--r-- | modules/audio.nix | 13 | ||||
| -rw-r--r-- | modules/bluetooth.nix | 7 | ||||
| -rw-r--r-- | modules/desktop.nix | 14 | ||||
| -rw-r--r-- | modules/fonts.nix | 7 | ||||
| -rw-r--r-- | modules/global.nix | 14 | ||||
| -rw-r--r-- | modules/login.nix | 46 | ||||
| -rw-r--r-- | modules/nvidia.nix | 2 | ||||
| -rw-r--r-- | modules/virtualization.nix | 6 |
8 files changed, 107 insertions, 2 deletions
diff --git a/modules/audio.nix b/modules/audio.nix new file mode 100644 index 0000000..f358c2c --- /dev/null +++ b/modules/audio.nix @@ -0,0 +1,13 @@ +{ config, ... }: + +{ + sound.enable = true; + hardware.pulseaudio.enable = false; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + jack.enable = true; + }; +} diff --git a/modules/bluetooth.nix b/modules/bluetooth.nix new file mode 100644 index 0000000..5e64d97 --- /dev/null +++ b/modules/bluetooth.nix @@ -0,0 +1,7 @@ +{ config, ... }: + +{ + hardware.bluetooth.enable = true; + hardware.bluetooth.powerOnBoot = true; + services.blueman.enable = true; +} diff --git a/modules/desktop.nix b/modules/desktop.nix new file mode 100644 index 0000000..a40691b --- /dev/null +++ b/modules/desktop.nix @@ -0,0 +1,14 @@ +{ pkgs, ... }: + +{ + environment.sessionVariables.NIXOS_OZONE_WL = "1"; + + environment.systemPackages = with pkgs; [ + networkmanagerapplet + + polkit_gnome + + pkgs.libnotify + pkgs.libappindicator + ]; +} diff --git a/modules/fonts.nix b/modules/fonts.nix new file mode 100644 index 0000000..5a85316 --- /dev/null +++ b/modules/fonts.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: + +{ + fonts.packages = with pkgs; [ + (nerdfonts.override { fonts = [ "UbuntuMono" ]; }) + ]; +} diff --git a/modules/global.nix b/modules/global.nix index 61575c1..d727f75 100644 --- a/modules/global.nix +++ b/modules/global.nix @@ -1,12 +1,22 @@ +{ pkgs, ... }: + { nix.settings = { experimental-features = [ "nix-command" "flakes" ]; auto-optimise-store = true; }; - nixpkgs.config.allowUnfree = true; - time.timeZone = "Asia/Kolkata"; + networking.networkmanager.enable = true; + + security.rtkit.enable = true; + + /* environment.etc."inputrc".text = pkgs.lib.mkForce ( + builtins.readFile <nixpkgs/nixos/modules/programs/bash/inputrc> + '' + set completion-ignore-case on + '' + ); */ + system.stateVersion = "23.11"; } diff --git a/modules/login.nix b/modules/login.nix new file mode 100644 index 0000000..61e3060 --- /dev/null +++ b/modules/login.nix @@ -0,0 +1,46 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + greetd.tuigreet + greetd.greetd + ]; + + services.greetd = { + enable = true; + settings = { + default_session = { + command = "tuigreet --time --remember --cmd dwl"; + user = "greeter"; + }; + }; + }; + + services.logind.extraConfig = '' + HandlePowerKey=ignore + ''; + + systemd.services.greetd.serviceConfig = { + Type = "idle"; + StandardInput = "tty"; + StandardOutput = "tty"; + StandardError = "journal"; + TTYReset = true; + TTYVHangup = true; + TTYVTDisallocate = true; + }; + + security.polkit.enable = true; + + security.pam.services.swaylock.text = '' + auth include login + ''; + + services.xserver.libinput.enable = true; + + programs.gnupg.agent = { + enable = true; + }; + + programs.dconf.enable = true; +} diff --git a/modules/nvidia.nix b/modules/nvidia.nix index a3f6074..c72317f 100644 --- a/modules/nvidia.nix +++ b/modules/nvidia.nix @@ -22,4 +22,6 @@ nvidiaBusId = "PCI:1:0:0"; }; }; + + environment.systemPackages = [ pkgs.cudatoolkit ]; } diff --git a/modules/virtualization.nix b/modules/virtualization.nix new file mode 100644 index 0000000..12e8d08 --- /dev/null +++ b/modules/virtualization.nix @@ -0,0 +1,6 @@ +{ pkgs, config, ... }: + +{ + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = true; +} |
