Compare commits

...

8 Commits

Author SHA1 Message Date
c45866e0b0 Add vscode stuff 2025-02-26 21:46:33 +01:00
60a3e4ae1d Allow mDNS port 2025-02-26 20:52:16 +01:00
82910d4449 Update readme 2025-02-26 20:49:41 +01:00
42e094806b Update spotify to be installed system wide 2025-02-26 20:45:24 +01:00
745bc7b80f Add missing quotes 2025-02-26 20:32:48 +01:00
dac0c997a1 Add missing ; in spotify 2025-02-26 20:30:44 +01:00
581f5c8d49 Updated lock 2025-02-26 20:30:04 +01:00
5efedf035d Update to 24.11 and install spotify 2025-02-26 20:27:10 +01:00
7 changed files with 61 additions and 17 deletions

View File

@@ -1,3 +1,11 @@
# setup-machines # setup-machines
This repo contains all the tools to correctly setup all the needed tools on a machine from clean install This repo contains all the tools to correctly setup all the needed tools on a machine from clean install
```sh
home-manager switch --flake .#noahk@NixOS_Desktop
```
```sh
sudo nixos-rebuild switch --flake .#NixOS_Desktop
```

16
flake.lock generated
View File

@@ -7,32 +7,32 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1720042825, "lastModified": 1739757849,
"narHash": "sha256-A0vrUB6x82/jvf17qPCpxaM+ulJnD8YZwH9Ci0BsAzE=", "narHash": "sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "e1391fb22e18a36f57e6999c7a9f966dc80ac073", "rev": "9d3d080aec2a35e05a15cedd281c2384767c2cfe",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-24.05", "ref": "release-24.11",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1723938990, "lastModified": 1740463929,
"narHash": "sha256-9tUadhnZQbWIiYVXH8ncfGXGvkNq3Hag4RCBEMUk7MI=", "narHash": "sha256-4Xhu/3aUdCKeLfdteEHMegx5ooKQvwPHNkOgNCXQrvc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c42fcfbdfeae23e68fc520f9182dde9f38ad1890", "rev": "5d7db4668d7a0c6cc5fc8cf6ef33b008b2b1ed8b",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-24.05", "ref": "nixos-24.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View File

@@ -2,9 +2,9 @@
description = "A very basic flake"; description = "A very basic flake";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
home-manager.url = "github:nix-community/home-manager/release-24.05"; home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
}; };

View File

@@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./vscode.nix
];
}

View File

@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
programs.vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
jnoortheen.nix-ide
mhutchie.git-graph
donjayamanne.githistory
eamodio.gitlens
];
};
}

View File

@@ -14,6 +14,8 @@
# You can also split up your configuration and import pieces of it here: # You can also split up your configuration and import pieces of it here:
# ./nvim.nix # ./nvim.nix
./IDEs
]; ];
nixpkgs = { nixpkgs = {
@@ -39,8 +41,8 @@
}; };
home = { home = {
username = noahk; username = "noahk";
homeDirectory = /home/noahk/; homeDirectory = "/home/noahk";
}; };
# Add stuff for your user as you see fit: # Add stuff for your user as you see fit:
@@ -52,8 +54,8 @@
programs.git.enable = true; programs.git.enable = true;
# Nicely reload system units when changing configs # Nicely reload system units when changing configs
systemd.user.startServices = sd-switch; systemd.user.startServices = "sd-switch";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = 24.05; home.stateVersion = "24.11";
} }

View File

@@ -109,6 +109,18 @@
papirus-icon-theme papirus-icon-theme
# Menu kind # Menu kind
xfce.xfce4-whiskermenu-plugin xfce.xfce4-whiskermenu-plugin
# Spotify
spotify
];
networking.firewall.allowedTCPPorts = [
# Allow discovery for spotify on the network
57621
];
networking.firewall.allowedUDPPorts = [
# Allow discovery for spotify on the network
5353
]; ];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
@@ -117,6 +129,5 @@
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.11"; # Did you read the comment?
} }