Compare commits
2 Commits
81c83f6264
...
6135e433a6
| Author | SHA1 | Date | |
|---|---|---|---|
| 6135e433a6 | |||
| dc6e082a50 |
8
flake.lock
generated
8
flake.lock
generated
@@ -23,11 +23,11 @@
|
||||
"mysecrets": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1758805800,
|
||||
"narHash": "sha256-gpsVmfnAx5WvuJccSEFFCGQauVwTtMOvNX8MU2rAh9g=",
|
||||
"lastModified": 1758835276,
|
||||
"narHash": "sha256-RlfV0236hc1olvLMUDmd6uBOYGqr+77pF+UjGzELPA8=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "e323fa4ec284046bd64842e70123ffadfa2b859f",
|
||||
"revCount": 6,
|
||||
"rev": "38102377bbb3ecc2de852446ad03a6e4e98aba0b",
|
||||
"revCount": 7,
|
||||
"type": "git",
|
||||
"url": "file:///home/beastie/nixos/secrets"
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{
|
||||
networking = {
|
||||
hostName = "${hostname}";
|
||||
interfaces.enp1s0 = {
|
||||
interfaces.enp5s0 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.0.2";
|
||||
@@ -15,7 +15,7 @@
|
||||
};
|
||||
defaultGateway = {
|
||||
address = "192.168.0.254";
|
||||
interface = "enp1s0";
|
||||
interface = "enp5s0";
|
||||
};
|
||||
nameservers = [
|
||||
"9.9.9.9"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
pkgs.nixos-generators
|
||||
pkgs.efibootmgr
|
||||
pkgs.gptfdisk
|
||||
pkgs.duf
|
||||
];
|
||||
services = {
|
||||
locate = {
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=Virtual-1,1920x1080,0x0,1
|
||||
|
||||
workspace = 1, monitor:Virtual-1
|
||||
workspace = 2, monitor:Virtual-1
|
||||
workspace = 3, monitor:Virtual-1
|
||||
workspace = 4, monitor:Virtual-1
|
||||
workspace = 5, monitor:Virtual-1
|
||||
workspace = 6, monitor:Virtual-1
|
||||
workspace = 7, monitor:Virtual-1
|
||||
workspace = 8, monitor:Virtual-1
|
||||
workspace = 1, monitor:HDMI-A-1
|
||||
workspace = 2, monitor:HDMI-A-1
|
||||
workspace = 3, monitor:HDMI-A-1
|
||||
workspace = 4, monitor:HDMI-A-1
|
||||
workspace = 5, monitor:HDMI-A-2
|
||||
workspace = 6, monitor:HDMI-A-2
|
||||
workspace = 7, monitor:HDMI-A-2
|
||||
workspace = 8, monitor:HDMI-A-2
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
},
|
||||
"disk": {
|
||||
"interval": 300,
|
||||
"format": " {percentage_free}% ",
|
||||
"format": " {percentage_used}% ",
|
||||
"path": "/"
|
||||
},
|
||||
"network": {
|
||||
@@ -73,9 +73,8 @@
|
||||
"all-outputs": false,
|
||||
"on-click": "activate",
|
||||
"persistent-workspaces": {
|
||||
"HDMI-A-1": [1, 2, 3],
|
||||
"HDMI-A-2": [4, 5, 6],
|
||||
"eDP-1": [7, 8, 9],
|
||||
"HDMI-A-1": [1, 2, 3, 4],
|
||||
"HDMI-A-2": [5, 6, 7, 8],
|
||||
},
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
hostname = config.networking.hostName;
|
||||
in
|
||||
{
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware = {
|
||||
graphics = {
|
||||
# enable opengl
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||
};
|
||||
};
|
||||
}
|
||||
20
modules/optionnals/desktop/pipewire.nix
Normal file
20
modules/optionnals/desktop/pipewire.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
pavucontrol
|
||||
pulseaudio # for pactl
|
||||
easyeffects
|
||||
];
|
||||
}
|
||||
@@ -12,8 +12,13 @@
|
||||
../desktop/dunst.nix
|
||||
../desktop/kitty.nix
|
||||
../desktop/packages.nix
|
||||
../desktop/pipewire.nix
|
||||
../desktop/qwerty-fr.nix
|
||||
../desktop/rofi.nix
|
||||
../desktop/starship.nix
|
||||
../desktop/wayland.nix
|
||||
|
||||
### Import Graphics modules
|
||||
../desktop/nvidia.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
../desktop/dunst.nix
|
||||
../desktop/kitty.nix
|
||||
../desktop/packages.nix
|
||||
../desktop/pipewire.nix
|
||||
../desktop/qwerty-fr.nix
|
||||
../desktop/rofi.nix
|
||||
../desktop/starship.nix
|
||||
|
||||
Reference in New Issue
Block a user