added browser, added system level and user level packges, added flatpak input
This commit is contained in:
parent
baae8c6292
commit
90b4e20fae
17
flake.lock
17
flake.lock
@ -41,6 +41,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-flatpak": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1711997201,
|
||||||
|
"narHash": "sha256-J71xzQlVYsjagA4AsVwRazhBh2rZrPpKvxTgs6UzL7c=",
|
||||||
|
"owner": "gmodena",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"rev": "b76fa31346db7fc958a9898f3c594696ca71c4fd",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "gmodena",
|
||||||
|
"ref": "v0.4.1",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1725407940,
|
"lastModified": 1725407940,
|
||||||
@ -77,6 +93,7 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"darwin": "darwin",
|
"darwin": "darwin",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-darwin": "nixpkgs-darwin"
|
"nixpkgs-darwin": "nixpkgs-darwin"
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
description = "Wyatt's nix configuration suite";
|
description = "Wyatt's nix configuration suite";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||||
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
|
||||||
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin";
|
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-24.05";
|
url = "github:nix-community/home-manager/release-24.05";
|
||||||
@ -16,6 +17,7 @@
|
|||||||
outputs = inputs @ {
|
outputs = inputs @ {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
nix-flatpak,
|
||||||
darwin,
|
darwin,
|
||||||
home-manager,
|
home-manager,
|
||||||
...
|
...
|
||||||
@ -67,7 +69,10 @@
|
|||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = extraSpecialArgs;
|
home-manager.extraSpecialArgs = extraSpecialArgs;
|
||||||
home-manager.users.${userName} = import ./home;
|
home-manager.users.${userName}.imports = [
|
||||||
|
nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
|
./home
|
||||||
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
5
home/browser.nix
Normal file
5
home/browser.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
programs.firefox = {
|
||||||
|
enable = pkgs.stdenv.isLinux;
|
||||||
|
};
|
||||||
|
}
|
@ -49,6 +49,8 @@
|
|||||||
discord
|
discord
|
||||||
obsidian
|
obsidian
|
||||||
vscode
|
vscode
|
||||||
|
weechat
|
||||||
|
# iamb
|
||||||
ollama
|
ollama
|
||||||
|
|
||||||
# games?
|
# games?
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# import sub modules
|
# Import sub modules
|
||||||
imports = [
|
imports = [
|
||||||
./atuin.nix
|
./atuin.nix
|
||||||
./shell.nix
|
./shell.nix
|
||||||
@ -25,6 +25,9 @@
|
|||||||
if pkgs.stdenv.isDarwin
|
if pkgs.stdenv.isDarwin
|
||||||
then "/Users/${userName}"
|
then "/Users/${userName}"
|
||||||
else "/home/${userName}";
|
else "/home/${userName}";
|
||||||
|
sessionVariables = {
|
||||||
|
XDG_CURRENT_DESKTOP = "sway";
|
||||||
|
};
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9,26 +9,14 @@ in {
|
|||||||
xwayland = true;
|
xwayland = true;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
|
|
||||||
# Install packages that will be installed with sway
|
|
||||||
# extraPackages = with pkgs; [
|
|
||||||
# wl-clipboard
|
|
||||||
# wofi
|
|
||||||
# mako
|
|
||||||
# wttrbar
|
|
||||||
# light
|
|
||||||
# brightnessctl
|
|
||||||
# playerctl
|
|
||||||
# grim
|
|
||||||
# slurp
|
|
||||||
# cliphist
|
|
||||||
# ];
|
|
||||||
|
|
||||||
wrapperFeatures = {
|
wrapperFeatures = {
|
||||||
gtk = true;
|
gtk = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.wofi.enable = pkgs.stdenv.isLinux;
|
programs.wofi.enable = pkgs.stdenv.isLinux;
|
||||||
|
programs.mako.enable = pkgs.stdenv.isLinux;
|
||||||
|
# programs.cliphist.enable = pkgs.stdenv.isLinux;
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = pkgs.stdenv.isLinux;
|
enable = pkgs.stdenv.isLinux;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
|
@ -69,6 +69,13 @@
|
|||||||
wireguard-tools
|
wireguard-tools
|
||||||
podman
|
podman
|
||||||
toolbox
|
toolbox
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
playerctl
|
||||||
|
light
|
||||||
|
brightnessctl
|
||||||
|
wttrbar
|
||||||
|
cliphist
|
||||||
];
|
];
|
||||||
|
|
||||||
# Install system-wide fonts
|
# Install system-wide fonts
|
||||||
@ -118,4 +125,24 @@
|
|||||||
|
|
||||||
# Add username to groups "wheel" and "video" - more may be added here later
|
# Add username to groups "wheel" and "video" - more may be added here later
|
||||||
users.users.${userName}.extraGroups = ["wheel" "video"];
|
users.users.${userName}.extraGroups = ["wheel" "video"];
|
||||||
|
|
||||||
|
# XDG stuff
|
||||||
|
xdg = {
|
||||||
|
portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = with pkgs; [
|
||||||
|
xdg-desktop-portal-wlr
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Firewall stuff not allowed in common user and network creation
|
||||||
|
networking.firewall.enable = true; # VERY important, do not touch
|
||||||
|
# networking.firewall.allowedTCPPorts = [];
|
||||||
|
# networking.firewall.allowedUDPPorts = [];
|
||||||
|
networking.networkmanager.enable = true; # Linux tool for managing network connections
|
||||||
|
|
||||||
|
# Enable Flatpak (app containerization)
|
||||||
|
services.flatpak.enable = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user