mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 04:56:34 +05:30
refactor flake
This commit is contained in:
13
flake.nix
13
flake.nix
@ -44,13 +44,9 @@
|
|||||||
canopus = nixpkgs.lib.nixosSystem {
|
canopus = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs username;};
|
specialArgs = {inherit inputs outputs username;};
|
||||||
modules = [
|
modules = [
|
||||||
|
./modules/nixos
|
||||||
./hosts/canopus
|
./hosts/canopus
|
||||||
|
|
||||||
./modules/nixos/desktop/awesome
|
|
||||||
./modules/nixos/desktop/hyprland
|
|
||||||
./modules/nixos/virtualisation
|
|
||||||
./modules/nixos/steam.nix
|
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
@ -59,9 +55,7 @@
|
|||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
imports = [
|
imports = [
|
||||||
./modules/home-manager
|
./modules/home-manager
|
||||||
./modules/home-manager/hyprland
|
./hosts/canopus/home.nix
|
||||||
./modules/home-manager/waybar
|
|
||||||
./home/tux
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -71,8 +65,8 @@
|
|||||||
controller = nixpkgs.lib.nixosSystem {
|
controller = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs username;};
|
specialArgs = {inherit inputs outputs username;};
|
||||||
modules = [
|
modules = [
|
||||||
|
./modules/nixos
|
||||||
./hosts/controller
|
./hosts/controller
|
||||||
./modules/nixos/headscale.nix
|
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
@ -91,6 +85,7 @@
|
|||||||
wsl = nixpkgs.lib.nixosSystem {
|
wsl = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs username;};
|
specialArgs = {inherit inputs outputs username;};
|
||||||
modules = [
|
modules = [
|
||||||
|
./modules/nixos
|
||||||
./hosts/wsl
|
./hosts/wsl
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
@ -1,53 +1,18 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
username,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nixos-hardware.nixosModules.asus-zephyrus-ga503
|
inputs.nixos-hardware.nixosModules.asus-zephyrus-ga503
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
../../modules/nixos/desktop/awesome
|
||||||
|
../../modules/nixos/desktop/hyprland
|
||||||
|
../../modules/nixos/virtualisation
|
||||||
|
../../modules/nixos/steam.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs.config.cudaSupport = true;
|
||||||
overlays = [
|
|
||||||
outputs.overlays.additions
|
|
||||||
outputs.overlays.modifications
|
|
||||||
outputs.overlays.unstable-packages
|
|
||||||
outputs.overlays.nur
|
|
||||||
outputs.overlays.nix-vscode-extensions
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
|
||||||
cudaSupport = true;
|
|
||||||
allowUnfree = true;
|
|
||||||
joypixels.acceptLicense = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
settings = {
|
|
||||||
experimental-features = "nix-command flakes";
|
|
||||||
auto-optimise-store = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
time.timeZone = "Asia/Kolkata";
|
|
||||||
i18n = {
|
|
||||||
defaultLocale = "en_US.UTF-8";
|
|
||||||
extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "en_IN";
|
|
||||||
LC_IDENTIFICATION = "en_IN";
|
|
||||||
LC_MEASUREMENT = "en_IN";
|
|
||||||
LC_MONETARY = "en_IN";
|
|
||||||
LC_NAME = "en_IN";
|
|
||||||
LC_NUMERIC = "en_IN";
|
|
||||||
LC_PAPER = "en_IN";
|
|
||||||
LC_TELEPHONE = "en_IN";
|
|
||||||
LC_TIME = "en_IN";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "canopus";
|
hostName = "canopus";
|
||||||
@ -122,7 +87,6 @@
|
|||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
ssh.startAgent = true;
|
ssh.startAgent = true;
|
||||||
zsh.enable = true;
|
|
||||||
thunar = {
|
thunar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman];
|
plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman];
|
||||||
@ -132,26 +96,8 @@
|
|||||||
noisetorch.enable = true;
|
noisetorch.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
users = {
|
|
||||||
defaultUserShell = pkgs.zsh;
|
|
||||||
users.${username} = {
|
|
||||||
initialPassword = "${username}";
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = ["networkmanager" "wheel" "storage"];
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me''
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
resolved.enable = true;
|
resolved.enable = true;
|
||||||
openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
PasswordAuthentication = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pipewire = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
51
hosts/canopus/home.nix
Normal file
51
hosts/canopus/home.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
../../modules/home-manager/hyprland
|
||||||
|
../../modules/home-manager/waybar
|
||||||
|
../../modules/home-manager/picom
|
||||||
|
../../modules/home-manager/alacritty
|
||||||
|
../../modules/home-manager/wezterm
|
||||||
|
../../modules/home-manager/rofi
|
||||||
|
../../modules/home-manager/barrier
|
||||||
|
../../modules/home-manager/firefox
|
||||||
|
../../modules/home-manager/kdeconnect
|
||||||
|
../../modules/home-manager/vs-code
|
||||||
|
];
|
||||||
|
|
||||||
|
home.pointerCursor = {
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
name = "Bibata-Modern-Ice";
|
||||||
|
};
|
||||||
|
|
||||||
|
qt.enable = true;
|
||||||
|
qt.platformTheme = "gtk";
|
||||||
|
qt.style.name = "adwaita-dark";
|
||||||
|
qt.style.package = pkgs.adwaita-qt;
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
theme = {
|
||||||
|
name = "Materia-dark";
|
||||||
|
package = pkgs.materia-theme;
|
||||||
|
};
|
||||||
|
iconTheme = {
|
||||||
|
package = pkgs.tela-icon-theme;
|
||||||
|
name = "Tela-black";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
discord
|
||||||
|
telegram-desktop
|
||||||
|
anydesk
|
||||||
|
rustdesk-flutter
|
||||||
|
vlc
|
||||||
|
darktable
|
||||||
|
rawtherapee
|
||||||
|
beekeeper-studio
|
||||||
|
gimp
|
||||||
|
obs-studio
|
||||||
|
flameshot
|
||||||
|
chromium
|
||||||
|
];
|
||||||
|
}
|
@ -6,6 +6,7 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
../../modules/nixos/headscale.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
0
hosts/controller/home.nix
Normal file
0
hosts/controller/home.nix
Normal file
@ -1,23 +1,13 @@
|
|||||||
{
|
{
|
||||||
outputs,
|
outputs,
|
||||||
pkgs,
|
|
||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./picom
|
|
||||||
./shell
|
./shell
|
||||||
./git
|
./git
|
||||||
./alacritty
|
|
||||||
./wezterm
|
|
||||||
./starship
|
./starship
|
||||||
./rofi
|
|
||||||
./nvim
|
./nvim
|
||||||
./barrier
|
|
||||||
./firefox
|
|
||||||
./kdeconnect
|
|
||||||
./vs-code
|
|
||||||
./bitwarden
|
|
||||||
./tmux
|
./tmux
|
||||||
./helix
|
./helix
|
||||||
];
|
];
|
||||||
@ -41,28 +31,6 @@
|
|||||||
home = {
|
home = {
|
||||||
username = "${username}";
|
username = "${username}";
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
|
|
||||||
pointerCursor = {
|
|
||||||
package = pkgs.bibata-cursors;
|
|
||||||
name = "Bibata-Modern-Ice";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
qt.enable = true;
|
|
||||||
qt.platformTheme = "gtk";
|
|
||||||
qt.style.name = "adwaita-dark";
|
|
||||||
qt.style.package = pkgs.adwaita-qt;
|
|
||||||
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
theme = {
|
|
||||||
name = "Materia-dark";
|
|
||||||
package = pkgs.materia-theme;
|
|
||||||
};
|
|
||||||
iconTheme = {
|
|
||||||
package = pkgs.tela-icon-theme;
|
|
||||||
name = "Tela-black";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
75
modules/nixos/default.nix
Normal file
75
modules/nixos/default.nix
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
username,
|
||||||
|
outputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
nixpkgs = {
|
||||||
|
overlays = [
|
||||||
|
outputs.overlays.additions
|
||||||
|
outputs.overlays.modifications
|
||||||
|
outputs.overlays.unstable-packages
|
||||||
|
outputs.overlays.nur
|
||||||
|
outputs.overlays.nix-vscode-extensions
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
joypixels.acceptLicense = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
experimental-features = "nix-command flakes";
|
||||||
|
auto-optimise-store = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
time.timeZone = "Asia/Kolkata";
|
||||||
|
i18n = {
|
||||||
|
defaultLocale = "en_US.UTF-8";
|
||||||
|
extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "en_IN";
|
||||||
|
LC_IDENTIFICATION = "en_IN";
|
||||||
|
LC_MEASUREMENT = "en_IN";
|
||||||
|
LC_MONETARY = "en_IN";
|
||||||
|
LC_NAME = "en_IN";
|
||||||
|
LC_NUMERIC = "en_IN";
|
||||||
|
LC_PAPER = "en_IN";
|
||||||
|
LC_TELEPHONE = "en_IN";
|
||||||
|
LC_TIME = "en_IN";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
zsh.enable = true;
|
||||||
|
nh = {
|
||||||
|
enable = true;
|
||||||
|
clean.enable = true;
|
||||||
|
clean.extraArgs = "--keep-since 5d --keep 5";
|
||||||
|
flake = "/home/${username}/Projects/nixos-config";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
users = {
|
||||||
|
defaultUserShell = pkgs.zsh;
|
||||||
|
users.${username} = {
|
||||||
|
initialPassword = "${username}";
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = ["networkmanager" "wheel" "storage"];
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me''
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user